TVAFn
import type { TVAFn } from "@pitlane/theme";A variant component built by tva. Call it with a variant
selection to get a mix-ready descriptor; call resolve for the
merged ThemedCSSProps without building a descriptor.
Type Parameters
V
V extends VariantShape
TVAFn<node>(props?): ThemedCSSMixin<node>;Resolves the selection and returns a mix-ready descriptor.
Node-generic like css: MixinDescriptor is invariant in
its node, so the element type binds per mix callsite.
Type Parameters
node
node extends Element = Element
Parameters
props?
Selection<V>
Returns
ThemedCSSMixin<node>
Methods
resolve()
resolve(props?): ThemedCSSProps;Returns the merged style object for a selection without producing a descriptor. combine is built on it.
Parameters
props?
Selection<V>