How to use clean-element - 1 common examples

To help you get started, we’ve selected a few clean-element examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github timberio / react-query-assist / src / index.styl.js View on Github external
${fontSize}
  ${fontWeight}
  ${fontFamily}
  ${lineHeight}
  ${letterSpacing}
  ${textAlign}
`

InputContainer.defaultProps = {
  bg: '#FFFFFF',
  color: '#505050',
  border: '1px solid rgba(0, 0, 0, .1)',
  fontFamily: 'monospace'
}

const CleanInput = clean(Textarea)

CleanInput.propTypes = {
  placeholderColor: propTypes.color.color,
  ...propTypes.lineHeight,
  ...propTypes.borderRadius
}

const placeholderColor = style({
  prop: 'placeholderColor',
  cssProperty: 'color',
  key: 'colors'
})

export const Input = styled(CleanInput)`
  display: block;
  background: none;

clean-element

React HOC for removing styled-system props from underlying DOM elements

MIT
Latest version published 6 years ago

Package Health Score

59 / 100
Full package analysis

Popular clean-element functions