1.1.0 • Published 6 years ago

@evanrs/map-props v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Select css given by

  • mapValue[propsprop]
  • mapValue(propsprop, prop, props)
  • mapValue
  • propsprop
   <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;
       `
   })