npx gluestack-ui add buttonimport {
Button,
ButtonText,
ButtonSpinner,
ButtonIcon,
ButtonGroup,
} from '@/components/ui/button';


export default () => (
<ButtonGroup>
<Button>
<ButtonText />
<ButtonSpinner />
<ButtonIcon />
</Button>
</ButtonGroup>
);
| Prop | Type | Default | Description |
|---|---|---|---|
isHovered | bool | false | To manually set hover to the button. |
isPressed | bool | false | To manually set pressable state to the button. |
isFocused | bool | false | To manually set focused state to the button. |
isDisabled | bool | false | To manually set disable to the button. |
| Prop | Type | Default | Description |
|---|---|---|---|
flexDirection | 'row' | 'column' | 'row-reverse' | 'column-reverse' | 'row' | Set the direction of Button group to vertical or horizontal |
isDisabled | bool | false | When true, this will disable all the buttons in a ButtonGroup. |
isAttached | bool | false | When attached, all buttons will be attached to each other. |
reversed | bool | false | To reverse the order of components. |
space | string | md | It sets the space between different buttons. |
| Name | Value | Default |
|---|---|---|
action | primary | secondary | positive | negative | default | primary |
variant | link | outline | solid | solid |
size | xs | sm | md | lg | xl | md |
| State | Data Attribute | Values |
|---|---|---|
hover | data-hover | true | false |
active | data-active | true | false |
disabled | data-disabled | true | false |
focusVisible | data-focus-visible | true | false |