TVAProps
import type { TVAProps } from "@pitlane/theme";type TVAProps<F> = F extends TVAFn<infer V> ? Selection<V> : never;Extracts a tva component's variant props, like cva's
VariantProps. All props are optional; wrap the component to
require one.
Type Parameters
F
F
Example
export type ButtonProps = TVAProps<typeof button>;
// { intent?: "primary" | "secondary"; size?: "sm" | "md" }