x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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" disabled="disabled" aria-busy="true"><span class="sr-only">Loading, please wait</span><span role="status" aria-live="polite" class="inline-flex items-center"><span class="sr-only">Loading</span><i data-lucide="loader" class="inline-block shrink-0 w-3 h-3 animate-spin" aria-hidden="true"></i> </span> Saving</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" disabled="disabled" aria-busy="true"><span class="sr-only">Loading, please wait</span><span role="status" aria-live="polite" class="inline-flex items-center"><span class="sr-only">Loading</span><i data-lucide="loader" class="inline-block shrink-0 w-4 h-4 animate-spin" aria-hidden="true"></i> </span> Saving</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" disabled="disabled" aria-busy="true"><span class="sr-only">Loading, please wait</span><span role="status" aria-live="polite" class="inline-flex items-center"><span class="sr-only">Loading</span><i data-lucide="loader" class="inline-block shrink-0 w-5 h-5 animate-spin" aria-hidden="true"></i> </span> Saving</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-offset-1 ring-offset-background disabled:pointer-events-none disabled:bg-muted! disabled:text-muted-foreground! bg-destructive text-white hover:bg-destructive/90 focus:ring-destructive h-9 px-4 py-2 disabled:cursor-not-allowed" disabled="disabled" aria-busy="true"><span class="sr-only">Loading, please wait</span><span role="status" aria-live="polite" class="inline-flex items-center"><span class="sr-only">Loading</span><i data-lucide="loader" class="inline-block shrink-0 w-4 h-4 animate-spin" aria-hidden="true"></i> </span> Deleting</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! border border-input bg-background hover:bg-accent hover:text-accent-foreground disabled:border-input! h-9 px-4 py-2 disabled:cursor-not-allowed" disabled="disabled" aria-busy="true"><span class="sr-only">Loading, please wait</span><span role="status" aria-live="polite" class="inline-flex items-center"><span class="sr-only">Loading</span><i data-lucide="loader" class="inline-block shrink-0 w-4 h-4 animate-spin" aria-hidden="true"></i> </span> Loading</button></div>1
2
3
4
5
6
7
<div class="flex flex-wrap items-center gap-3"> <%= render(UI::Button.new(loading: true, size: :sm)) { "Saving" } %> <%= render(UI::Button.new(loading: true)) { "Saving" } %> <%= render(UI::Button.new(loading: true, size: :lg)) { "Saving" } %> <%= render(UI::Button.new(loading: true, variant: :destructive)) { "Deleting" } %> <%= render(UI::Button.new(loading: true, variant: :outline)) { "Loading" } %></div>No notes provided.
No params configured.