Tonic UI
Getting StartedColor ModeColor StyleVersionsContributing
THEME
BordersBreakpointsColorsOutlinesPositionsSpacingSizesShadowsTypography
BUILDING BLOCKS
BoxControlBox
UTILITIES

FlatButton

Import

Usage

EDITABLE EXAMPLE

Variants

Use the variant prop to change the visual style of the Button. You can set the value to solid, outline.

EDITABLE EXAMPLE

Colors

Use the variantColor prop to change the color scheme of the Button. variantColor can be any color key that exist in the theme.colors.

EDITABLE EXAMPLE

Sizes

Use the size prop to change the size of the Button. You can set the value to sm, md, or lg.

EDITABLE EXAMPLE

States

EDITABLE EXAMPLE

Props

NameTypeDefaultDescription
disabledbooleanIf true, the button will be disabled. This sets aria-disabled=true and you can style this state by passing the _disabled prop.
sizestring'md'The size of the button. One of: 'sm', 'md', 'lg'
variantstring'solid'The variant of the button style to use. One of: 'solid', 'outline'
variantColorstring'gray'The color of the button. It must be a color key defined in theme.colors.