UNPKG

@fidely-ui/react

Version:

Fidely UI is a modern, beautifully crafted React design system powered by Ark UI and Panda CSS, delivering accessible and themeable components for building exceptional web apps

14 lines (13 loc) 342 B
export function splitProps(props, patternKeys) { const patternProps = {}; const restProps = {}; for (const key in props) { if (patternKeys.includes(key)) { patternProps[key] = props[key]; } else { restProps[key] = props[key]; } } return [patternProps, restProps]; }