1.1.0 • Published 6 years ago
@evanrs/map-props v1.1.0
Select css given by
<StyledComponent hide={!visible} />
mapProps({
color: (propValue, propName, ownProps) =>
css`color: ${propValue}`
})
mapProps({
intent: {
alert: css`color: magenta`,
success: css`color: green`,
default: css`color: blue`,
}
})
mapProps({
block: css`
display: block;
`
})