@antadesign/anta
    Preparing search index...

    Type Alias ButtonCopyPropsUnreviewed

    ButtonCopyProps: ButtonProps & {
        selected?: never;
        href?: never;
        target?: never;
        rel?: never;
        download?: never;
        ping?: never;
        type?: never;
        form?: never;
        iconTrailing?: never;
    } & CopyTarget & {
        iconPlacement?: "leading"
        | "trailing"
        | "none";
        copiedLabel?: string;
    }

    A copy button is a plain action control, so ButtonCopy keeps the Button axes that fit — tone / size / priority styling, disabled / loading, a leading icon + label — and pins the ones that don't to never: selected (it isn't a toggle), the whole submit/link axis (href / target / rel / download / ping / type / form — a copy button neither navigates nor submits), and the public iconTrailing (the glyph's side is iconPlacement's job). Plus a required copy target and the placement knob. (Pinning to never keeps the intersection expanding fully in the docs props table, which Omit wouldn't.)

    Type Declaration

    • Optionalselected?: never
    • Optionalhref?: never
    • Optionaltarget?: never
    • Optionalrel?: never
    • Optionaldownload?: never
    • Optionalping?: never
    • Optionaltype?: never
    • Optionalform?: never
    • OptionaliconTrailing?: never
    • Optional UnreviewediconPlacement?: "leading" | "trailing" | "none"

      Where the copy glyph sits relative to the label — or 'none' to omit it. Without a glyph, a successful copy shows a small confirmation label near the pointer and leaves the button unchanged.

      'leading'
      
    • Optional UnreviewedcopiedLabel?: string

      Text in the successful no-icon confirmation.

      Copied