UNPKG

@navinc/base-react-components

Version:
12 lines (7 loc) 437 B
Don't give it the `size` prop to default to a medium button. Buttons copy should not wrap, but if in the rare case you need it to, first try to get the copy shortened and if that is not a possibility, add the prop `wrap` If you give the `Button` component an href it will change the tag to an `<a>` tag. If you give the button a truthy isLoading property, then it will show loading dots TODO: Add some standardized onClick tracking?