@yarcl/react
    Preparing search index...

    Interface TokenProps<C>

    Design token props shared by every sized, colored component.

    interface TokenProps<C extends ComponentName | undefined = undefined> {
        color?: Color;
        radius?: "size" | Radius;
        size?: C extends keyof ComponentTokenProps ? ComponentSize<C> : Size;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    color?: Color

    Semantic color, from the colors config.

    config.defaults.color
    
    radius?: "size" | Radius

    Border radius, from the radii config, or 'size' for the radius named like the control's size.

    config.defaults.radius
    
    size?: C extends keyof ComponentTokenProps ? ComponentSize<C> : Size

    Control size, from the sizes config.

    config.defaults.size