@dxos/react-ui
    Preparing search index...

    Type Alias VariantProps

    type VariantProps = {
        align?: "center" | "start";
        caretDown?: boolean;
        compact?: boolean;
        hue?: Hue;
        iconClassNames?: ClassNameValue;
        iconSize?: Size;
        size?: Size;
        spin?: boolean;
        valence?: Valence;
        variant?: Variant;
    }
    Index

    Properties

    align?: "center" | "start"

    start packs icon and label at the start (a full-width menu-like button) instead of centring them.

    caretDown?: boolean

    A trailing caret marking a button that opens a menu.

    compact?: boolean

    Dense inline padding (one control inset), e.g. for a run of pager buttons. An icon-only button loses its square, narrowing to its icon plus an inset either side, and compact icon-only buttons in an Input adornment abut (a stepper's − and +).

    hue?: Hue

    Fills the button with a Tag's hue (--color-<hue>-surface/-fg), in place of the variant's fill.

    iconClassNames?: ClassNameValue

    Classes for the leading icon (e.g. a state colour), where the button's own colour would not reach it.

    iconSize?: Size

    The icons at this size's scale instead of the button's.

    size?: Size

    Sizes just this button (data-size scopes theme/size.css's metrics to it), whatever its enclosing scope.

    spin?: boolean

    Spins the leading icon, as a busy indicator.

    valence?: Valence

    Colour of the valence variant; without it the button adopts an enclosing valence surface's, else neutral.

    variant?: Variant