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

Method functional

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

Source from the content-addressed store, hash-verified

111 }
112
113 functional(
114 name: string,
115 applyFn: VariantFn<'functional'>,
116 { compounds, order }: { compounds?: Compounds; order?: number } = {},
117 ) {
118 this.set(name, {
119 kind: 'functional',
120 applyFn,
121 compoundsWith: Compounds.Never,
122 compounds: compounds ?? Compounds.StyleRules,
123 order,
124 })
125 }
126
127 compound(
128 name: string,

Callers 7

createVariantsFunction · 0.95
candidate.test.tsFile · 0.45
matchVariantFunction · 0.45
matchUtilitiesFunction · 0.45
registerLegacyUtilitiesFunction · 0.45
migratePrefixFunction · 0.45

Calls 1

setMethod · 0.95

Tested by

no test coverage detected