Button
Primitive button component with variants
import { Button } from 'theme-ui'
Variants
Button variants can be defined in the theme.buttons
object.
The Button component uses theme.buttons.primary
as its default variant style.
Edit the page on GitHub// example theme variants{buttons: {primary: {color: 'background',bg: 'primary','&:hover': {bg: 'text',}},secondary: {color: 'background',bg: 'secondary',},},}