Components
Buttons providing easy access to important actions.
Version: | 14.18.2 •View source•Changelog•Report issue | |
---|---|---|
Install: | yarn add @thumbtack/thumbprint-react | |
Import: | import { TextFab, IconFab } from '@thumbtack/thumbprint-react'; |
children
Children content to render.
React.ReactNode
theme
Theme that decides the style of the button.
This prop can be one of the following 2 types:
'primary'
'secondary'
'primary'
onClick
Function that will run when the fab is clicked on.
() => void
accessibilityLabel
Description of the fab content. It is required if the link contains an icon and no descriptive text.
string
icon
Icon from Thumbprint Icons to render within the button. It must be one of the
medium
icons.
React.ReactNode
theme
Theme that decides the style of the button.
This prop can be one of the following 2 types:
'primary'
'secondary'
'primary'
onClick
Function that will run when the fab is clicked on.
() => void
accessibilityLabel
Description of the fab content. It is required if the link contains an icon and no descriptive text.
string