Components
Fab
Buttons providing easy access to important actions
Text Fab
<TextFab> <ContentActionsFilterSmall className="mr2" /> Filters </TextFab>
Secondary Text Fab
<TextFab theme="secondary"> <ContentActionsFilterSmall className="mr2" /> Filters </TextFab>
Icon Fab
<IconFab icon={<ContentActionsAddMedium />} />
Secondary Icon Fab
<IconFab icon={<ContentActionsAddMedium />} theme="secondary" />
Props
TextFab
@deprecated Use `TextFabV2` instead.
childrenrequiredChildren content to render.
TypeReact.ReactNodethemeTheme that decides the style of the button.
Type'primary' | 'secondary'Default'primary'onClickFunction that will run when the fab is clicked on.
Type() => voidaccessibilityLabelDescription of the fab content. It is required if the link contains an icon and no descriptive text.
Typestring
IconFab
@deprecated Use `IconFabV2` instead.
iconrequiredIcon from Thumbprint Icons to render within the button. It must be one of the
mediumicons.TypeReact.ReactNodethemeTheme that decides the style of the button.
Type'primary' | 'secondary'Default'primary'onClickFunction that will run when the fab is clicked on.
Type() => voidaccessibilityLabelDescription of the fab content. It is required if the link contains an icon and no descriptive text.
Typestring