@yarcl/react
    Preparing search index...

    Interface VariantProps<C>

    The variant prop shared by components that apply a style recipe.

    interface VariantProps<C extends ComponentName | undefined = undefined> {
        variant?: C extends keyof ComponentTokenProps
            ? ComponentVariant<C>
            : Variant;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    variant?: C extends keyof ComponentTokenProps ? ComponentVariant<C> : Variant

    Style recipe, from the component's variant map or the shared variants config.

    config.defaults.variant