constant
tv
function tv<
V extends TVVariants<S, B, EV>,
CV extends TVCompoundVariants<V, S, B, EV, ES>,
DV extends TVDefaultVariants<V, S, EV, ES>,
B extends ClassNameValue = undefined,
S extends TVSlots = undefined,
E extends TVReturnTypeLike<any, any> = TVReturnTypeLike<V, S>,
EV extends TVVariants<ES, B, E["variants"], ES> = E["variants"],
ES extends TVSlots = E["slots"] extends TVSlots ? E["slots"] : undefined,
>(
options: {
extend?: E
base?: B
slots?: S
variants?: V
compoundVariants?: CV
compoundSlots?: TVCompoundSlots<
V,
S,
B,
>
defaultVariants?: DV
},
config?: TVConfig,
): TVReturnType<V, S, B, EV, ES, E>Create shared variant recipes using the package-owned tailwind-variants runtime.
Source packages/ui/src/index.ts:3
Returns TVReturnType<V, S, B, EV, ES, E> The declared result.