Skip to main content

Fab

Fab — Prism component.

Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggle
Live demo
Open ↗

When to use

Fab — Prism component.

Accessibility

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Import

const { Fab } = window.PrismDesignSystem_39d121;

Props

PropTypeRequiredDescription
variant"accent" | "neutral" | "positive" | "negative"Fill colour. accent (default), neutral, or semantic positive/negative.
size"sm" | "md" | "lg"
iconReact.ReactNodeThe icon node (Lucide <svg>).
labelReact.ReactNodeOptional text — present = extended (pill) FAB.
isDisabledboolean
onPress(e: React.MouseEvent) =&gt; voidREQUIRED when there is no visible label.
onClick(e: React.MouseEvent) =&gt; void
classNamestring