Button
The <Button />
component replaces <button />
tag and extends the standard props passed to a <button />
.
import { Button } from 'minerva-ui'
Preview
Source
Variants
Variants from defaultTheme
Preview
Source
Loading Button
Preview
Source
Disabled Button
Preview
Source
Props
The Button composes the PseudoBox
component so you can pass props for
PseudoBox
. These are props related to the Button component.
Name | Type | Is Required | Default | Description |
---|---|---|---|---|
disabled | boolean | optional | false | Toggles disabled pseudo class |
variant | string | optional | none | Optionally tries to use a variant style from your Theme object |
isLoading | boolean | optional | false | Displays loading spinner and disables button when true |