Button
A pressable component with multiple variants and sizes.
Installation
rubics add buttonUsage
Default
Outline
Loading
Props
| Name | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "outline" | "ghost" | "destructive" | "default" | Visual style of the button |
| size | "sm" | "md" | "lg" | "md" | Size of the button |
| loading | boolean | false | Shows loading spinner |
| disabled | boolean | false | Disables the button |
| onPress | () => void | - | Press handler |
9:41
Button Demo
Variants
