Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 444 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 444 Bytes

@styled-system/should-forward-prop

Utility for filtering Styled System props with Emotion's shouldForwardProp option

npm i @styled-system/should-forward-prop
import styled from '@emotion/styled'
import {
  space,
  color,
  fontSize
} from 'styled-system'
import shouldForwardProp from '@styled-system/should-forward-prop'

const Box = styled('div', { shouldForwardProp })(
  space,
  color,
  fontSize
)

MIT License