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

Function buildFunctionProps

packages/generator/src/shared.ts:9–9  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

7export const formatJsxValue = (value: string): string => (isBooleanValue(value) ? `{${value}}` : `"${value}"`)
8
9export const buildFunctionProps = (key: string, value: string) => `${key}: ${formatFunctionValue(value)}`
10export const buildJsxProps = (key: string, value: string) => `${key}=${formatJsxValue(value)}`
11
12export interface FormatPropsOptions {

Callers

nothing calls this directly

Calls 1

formatFunctionValueFunction · 0.85

Tested by

no test coverage detected