UNPKG

@nex-ui/styled

Version:

Styled API for creating atomic, theme-aware component styling.

8 lines (5 loc) 290 B
import '@nex-ui/utils'; import isPropValid from '@emotion/is-prop-valid'; const getDefaultShouldForwardProp = (tag)=>typeof tag === 'string' && // a 为 97,小于 97 即为大写 tag.charCodeAt(0) > 96 ? isPropValid : (key)=>key !== 'theme'; export { getDefaultShouldForwardProp };