Floating Action Button API
View componentThe full prop reference for the Floating Action Button component. A prominent circular action button.
Import
tsx
import { FloatingActionButton } from '@structyl/styled';Props
FloatingActionButton
Prominent floating action.
| Prop | Type | Default |
|---|---|---|
| variant# | 'circular' | 'extended'Shape mode. | 'circular' |
| extended# | booleanAlias for variant="extended". | — |
| color# | 'primary' | 'secondary' | 'destructive' | 'muted'Button color. | 'primary' |
| size# | 'small' | 'medium' | 'large'Button size. | 'medium' |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .