Fab
Buttons providing easy access to important actions
Text Fab
<TextFab> <o className="mr2" /> Filters </TextFab>
Secondary Text Fab
<TextFab theme="secondary"> <o className="mr2" /> Filters </TextFab>
Icon Fab
<IconFab icon={<o />} />
Secondary Icon Fab
<IconFab icon={<o />} theme="secondary" />
Props
TextFab
children
requiredChildren content to render.
TypeReact.ReactNode
theme
Theme that decides the style of the button.
Type'primary' | 'secondary'
Default'primary'
onClick
Function that will run when the fab is clicked on.
Type() => void
accessibilityLabel
Description of the fab content. It is required if the link contains an icon and no descriptive text.
Typestring
IconFab
icon
requiredIcon from Thumbprint Icons to render within the button. It must be one of the
medium
icons.TypeReact.ReactNode
theme
Theme that decides the style of the button.
Type'primary' | 'secondary'
Default'primary'
onClick
Function that will run when the fab is clicked on.
Type() => void
accessibilityLabel
Description of the fab content. It is required if the link contains an icon and no descriptive text.
Typestring