Skip to main content

FAB

A floating button along with icon & label.

Usage

FAB
function FABUsage() {
return <FAB title="FAB" icon={<Icon name="add" size={24} color="white" />} />
}

Offset

function FABOffset() {
return (
<FAB
size="large"
icon={<Icon name="add" size={32} color="white" />}
offsetX={48}
offsetY={120}
/>
)
}

Props

PropData TypeDefault ValueDescription
ExtendsButtonProps--Inherits properties from ButtonProps
iconReactNode--Set the icon of the FAB
offsetXnumber48Horizontal offset position for the fab
offsetYnumber48Vertical offset position for the fab
modeButtonModefilledChange the appearance of the button using this
titlestring--Button title text
titleStyleStyleProp<TextStyle>--Title text style
styleStyleProp<ViewStyle>--Button style to add padding/margin etc.
isLoadingboolean--Set it to true to show the activity indicator to the left
disabledboolean--Set to true to disable the button
disabledStyleStyleProp<ViewStyle>--button style for disabled state
disabledTitleStyleStyleProp<TextStyle>--button text style for disabled state
leftReactNode--Render any icon/JSX on left of the title
rightReactNode--Render any icon/JSX on right of the title
loaderPropsActivityIndicatorProps--Loader props
statusBlossomStatusprimary--
sizeBlossomSizemedium--