MCPcopy Create free account
hub / github.com/chakra-ui/panda / convert

Function convert

packages/shared/src/normalize-html.ts:3–5  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

1const htmlProps = ['htmlSize', 'htmlTranslate', 'htmlWidth', 'htmlHeight']
2
3function convert(key: string) {
4 return htmlProps.includes(key) ? key.replace('html', '').toLowerCase() : key
5}
6
7export function normalizeHTMLProps(props: Record<string, any>) {
8 return Object.fromEntries(Object.entries(props).map(([key, value]) => [convert(key), value]))

Callers 1

normalizeHTMLPropsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected