styled
Components with props-driven styles. Pass a tag, or any component that takes a className.
import { styled } from 'goober';
const Button = styled('button')`
background: royalblue;
color: white;
&:hover {
background: crimson;
}
`;
// Styles can read props
const Dot = styled('span')((props) => ({
opacity: props.dim ? 0.4 : 1
}));