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

Function formatJsxComponent

packages/generator/src/shared.ts:27–30  ·  view source on GitHub ↗
(component: string, props: Record<string, string | null | undefined>)

Source from the content-addressed store, hash-verified

25}
26
27export const formatJsxComponent = (component: string, props: Record<string, string | null | undefined>) => {
28 const formattedProps = formatProps(props, { keyValueSeparator: '=', propSeparator: ' ', quoteStyle: 'double' })
29 return `<${component}${formattedProps ? ' ' + formattedProps : ''} />`
30}
31
32export const collectCompositionStyles = (
33 values: Record<string, any>,

Callers 1

generateJsxExampleFunction · 0.85

Calls 1

formatPropsFunction · 0.85

Tested by

no test coverage detected