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

Function assertCompoundVariant

packages/studio/styled-system/css/cva.mjs:83–87  ·  view source on GitHub ↗
(name, compoundVariants, variants, prop)

Source from the content-addressed store, hash-verified

81}
82
83export function assertCompoundVariant(name, compoundVariants, variants, prop) {
84 if (compoundVariants.length > 0 && typeof variants?.[prop] === 'object') {
85 throw new Error(`[recipe:${name}:${prop}] Conditions are not supported when using compound variants.`)
86 }
87}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected