Components
Consistent spacing between buttons.
| Version: | 14.18.2 •View source•Changelog•Report issue | |
|---|---|---|
| Install: | yarn add @thumbtack/thumbprint-react | |
| Import: | import { ButtonRow } from '@thumbtack/thumbprint-react'; | |
Best used with "full-below-small" on the children.
Note: this reverses the order of the buttons on small screens as well, per our design guidelines which require primary action buttons to be on the right of a row, but on top when stacked.
childrenButton components to render.
React.ReactNodenulljustifyControls the horizontal alignment of buttons within the container.
This prop can be one of the following 3 types:
'center''left''right''left'isStackedBelowSmallStack items below the small breakpoint. This pairs well with width="full-below-small"
for buttons
booleanfalsedataTestIdA selector hook into the React component for use in automated testing environments.
stringdataTestA selector hook into the React component for use in automated testing environments.
Note: Deprecated in favor of the `dataTestId` prop
string