Skip to main content

API Reference

FAB Component Variants​

The FAB component comes in five different variants to suit various use cases:

Single FAB​

Basic Usage

A simple floating action button with a single action.

PropTypeDefaultDescription
iconReact.ReactNode-Optional icon component
onPress() => void-Optional callback function when FAB is pressed
theme'dark' | 'light''light'Theme variant for the FAB
styleViewStyle-Custom styles for the FAB

Clustered FAB​

Multiple Actions with Labels

Displays multiple actions in a clustered layout with labels.

PropTypeDefaultDescription
items[FabClusteredItem, FabClusteredItem?, FabClusteredItem?]-Array of 1-3 FAB items
theme'dark' | 'light''light'Theme variant for the FAB
styleViewStyle-Custom styles for the FAB
isOpen(prev: boolean) => void-Callback for FAB open/close state changes
plusIconReact.ReactNode-Optional custom plus icon component
containerStyleViewStyle-Custom styles for the FAB container

FabClusteredItem​

PropertyTypeDescription
iconReact.ReactNodeIcon component
onPress() => voidCallback function when FAB is pressed
labelstringLabel text to display next to the FAB

Doted FAB​

Minimalist Multiple Actions

Displays multiple actions in a dot-style layout.

PropTypeDefaultDescription
items[FabDotedItem, FabDotedItem?, FabDotedItem?]-Array of 1-3 FAB items
theme'dark' | 'light''light'Theme variant for the FAB
styleViewStyle-Custom styles for the FAB
isOpen(prev: boolean) => void-Callback for FAB open/close state changes
plusIconReact.ReactNode-Optional custom plus icon component
containerStyleViewStyle-Custom styles for the FAB container

FabDotedItem​

PropertyTypeDescription
iconReact.ReactNodeIcon component
onPress() => voidCallback function when FAB is pressed

Extended FAB​

Actions with Labels

Displays multiple actions with labels in an extended layout.

PropTypeDefaultDescription
items[FabExtendedItem, FabExtendedItem?, FabExtendedItem?]-Array of 1-3 FAB items
theme'dark' | 'light''light'Theme variant for the FAB
styleViewStyle-Custom styles for the FAB
isOpen(prev: boolean) => void-Callback for FAB open/close state changes
plusIconReact.ReactNode-Optional custom plus icon component
containerStyleViewStyle-Custom styles for the FAB container

FabExtendedItem​

PropertyTypeDescription
iconReact.ReactNodeIcon component
onPress() => voidCallback function when FAB is pressed
labelstringLabel text to display next to the FAB

Stacked FAB​

Vertical Layout

Displays multiple actions in a vertical stacked layout.

PropTypeDefaultDescription
items[FabStackedItem, FabStackedItem?, FabStackedItem?]-Array of 1-3 FAB items
theme'dark' | 'light''light'Theme variant for the FAB
styleViewStyle-Custom styles for the FAB
isOpen(prev: boolean) => void-Callback for FAB open/close state changes
plusIconReact.ReactNode-Optional custom plus icon component
containerStyleViewStyle-Custom styles for the FAB container

FabStackedItem​

PropertyTypeDescription
iconReact.ReactNodeIcon component
onPress() => voidCallback function when FAB is pressed