Previews

No matching results.

x
1
2
3
4
5
6
<div class="flex flex-wrap items-center gap-3">
<button type="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1 ring-offset-background disabled:pointer-events-none disabled:bg-muted! disabled:text-muted-foreground! bg-primary text-primary-foreground hover:bg-primary/90 h-8 rounded-md px-3 text-xs disabled:cursor-not-allowed" aria-busy="false">Small</button>
<button type="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1 ring-offset-background disabled:pointer-events-none disabled:bg-muted! disabled:text-muted-foreground! bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2 disabled:cursor-not-allowed" aria-busy="false">Default</button>
<button type="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1 ring-offset-background disabled:pointer-events-none disabled:bg-muted! disabled:text-muted-foreground! bg-primary text-primary-foreground hover:bg-primary/90 h-10 rounded-md px-8 disabled:cursor-not-allowed" aria-busy="false">Large</button>
<button type="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1 ring-offset-background disabled:pointer-events-none disabled:bg-muted! disabled:text-muted-foreground! bg-primary text-primary-foreground hover:bg-primary/90 h-9 w-9 disabled:cursor-not-allowed" aria-busy="false">I</button>
</div>
1
2
3
4
5
6
<div class="flex flex-wrap items-center gap-3">
<%= render(UI::Button.new(size: :sm)) { "Small" } %>
<%= render(UI::Button.new(size: :default)) { "Default" } %>
<%= render(UI::Button.new(size: :lg)) { "Large" } %>
<%= render(UI::Button.new(size: :icon)) { "I" } %>
</div>