MCPcopy
hub / github.com/system-ui/theme-ui / parseProps

Function parseProps

packages/core/src/parseProps.tsx:9–21  ·  view source on GitHub ↗
(props: any)

Source from the content-addressed store, hash-verified

7}
8
9export function parseProps(props: any) {
10 if (!props || (!props.sx && !props.css)) return props
11
12 const next: Record<string, unknown> = {}
13
14 for (let key in props) {
15 if (key === 'sx') continue
16 next[key] = props[key]
17 }
18
19 next.css = getCSS(props)
20 return next
21}

Callers 5

parseProps.tsxFile · 0.90
jsxFunction · 0.90
jsxDEVFunction · 0.90
jsxFunction · 0.90
jsxsFunction · 0.90

Calls 1

getCSSFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…