MCPcopy
hub / github.com/tailwindlabs/tailwindcss / compound

Method compound

packages/tailwindcss/src/variants.ts:127–140  ·  view source on GitHub ↗
(
    name: string,
    compoundsWith: Compounds,
    applyFn: VariantFn<'compound'>,
    { compounds, order }: { compounds?: Compounds; order?: number } = {},
  )

Source from the content-addressed store, hash-verified

125 }
126
127 compound(
128 name: string,
129 compoundsWith: Compounds,
130 applyFn: VariantFn<'compound'>,
131 { compounds, order }: { compounds?: Compounds; order?: number } = {},
132 ) {
133 this.set(name, {
134 kind: 'compound',
135 applyFn,
136 compoundsWith,
137 compounds: compounds ?? Compounds.StyleRules,
138 order,
139 })
140 }
141
142 group(fn: () => void, compareFn?: CompareFn) {
143 this.groupOrder = this.nextOrder()

Callers 2

createVariantsFunction · 0.95
candidate.test.tsFile · 0.80

Calls 1

setMethod · 0.95

Tested by

no test coverage detected