Fab
Floating action button with an optional speed-dial of actions.
Import
tsx
import { Fab } from "@cooud-ui/ui";
bash
npx cooud-ui add fab
Examples
API Reference
Generated from the component's exported types.
FabProps
Extends ButtonHTMLAttributes<HTMLButtonElement>
| Prop | Type | Default | Description |
|---|---|---|---|
icon* | ReactNode | — | The main glyph shown inside the floating button. |
label* | string | — | Accessible name for the main button — wired to `aria-label`. |
actions | FabAction[] | — | Optional speed-dial actions. When provided, clicking the FAB toggles an expanded vertical stack of smaller round buttons rendered above it. |