Skip to content
Buttons

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>

PropTypeDefaultDescription
icon*
ReactNodeThe main glyph shown inside the floating button.
label*
stringAccessible 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.