x
1
<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">Click me</button>1
2
3
4
5
6
7
8
render(UI::Button.new( variant: variant.to_sym, size: size.to_sym, full_width: full_width, loading: loading, disabled: disabled)) do |btn| btn.with_leading_icon(name: leading_icon.to_s) unless leading_icon.to_s == "none" btn.with_trailing_icon(name: trailing_icon.to_s) unless trailing_icon.to_s == "none" textendNo notes provided.
| Param | Description | Input |
|---|---|---|
|
Button text |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|