npx gluestack-ui add fabimport { Fab, FabLabel, FabIcon } from '@/components/ui/fab';


export default () => (
<Fab>
<FabLabel />
<FabIcon />
</Fab>
);
| Prop | Type | Default | Description |
|---|---|---|---|
placement | "top left" | "top right" | "bottom left" | "bottom right" | "top center" | "bottom center" | "bottom right" | Placement of the Fab |
isHovered | bool | false | To manually set hover to the fab. |
isPressed | bool | false | To manually set pressable state to the fab. |
isFocused | bool | false | To manually set focused state to the fab. |
isDisabled | bool | false | To manually set disable to the fab. |
| State | Data Attribute | Values |
|---|---|---|
focus | data-focus | true | false |
focusVisible | data-focus-visible | true | false |
| Name | Value | Default |
|---|---|---|
size | sm | md | lg | md |
placement | top right | top left | bottom right | bottom left | top center | bottom center | bottom right |