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

Function formatClassName

packages/shared/src/classname.ts:44–44  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

42 const { utility, hash, conditions: conds = fallbackCondition } = context
43
44 const formatClassName = (str: string) => [utility.prefix, str].filter(Boolean).join('-')
45
46 const hashFn = (conditions: string[], className: string) => {
47 let result: string

Callers 1

hashFnFunction · 0.70

Calls 2

filterMethod · 0.80
joinMethod · 0.65

Tested by

no test coverage detected