@antadesign/anta
    Preparing search index...

    Type Alias ContentModeUnreviewed

    Content axis — slots render in this order inside the button: icon → label → children → iconTrailing. Pass icon alone for an icon-only button (the CSS detects a lone icon, allowing tooltip and copy helpers, and gives the host equal padding on both axes).

    type ContentMode = {
        label?: string;
        icon?: IconShape;
        iconTrailing?: IconShape;
    }
    Index
    label?: string

    Label text. Renders between the leading icon and children.

    icon?: IconShape

    Leading icon shape. When set alone (no label, no iconTrailing, no children), the button renders as a square icon-only control and the wrapper auto-supplies aria-label={icon} (override by passing your own aria-label).

    iconTrailing?: IconShape

    Trailing icon shape. Renders after children, last in the slot order.