structyl

Floating Action Button API

View component

The 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.

PropTypeDefault
variant#'circular' | 'extended'

Shape mode.

'circular'
extended#boolean

Alias for variant="extended".

color#'primary' | 'secondary' | 'destructive' | 'muted'

Button color.

'primary'
size#'small' | 'medium' | 'large'

Button size.

'medium'
className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library