@antadesign/anta
    Preparing search index...

    Type Alias SubmitModeUnreviewed

    SubmitMode:
        | {
            href?: string;
            target?: string;
            rel?: string;
            download?: string
            | boolean;
            ping?: string;
            type?: never;
            form?: never;
        }
        | {
            href?: never;
            target?: never;
            rel?: never;
            download?: never;
            ping?: never;
            type?: "button"
            | "submit"
            | "reset";
            form?: string;
        }

    Submit axis — anchors (href) don't carry form-submission props; buttons don't carry anchor props. (Copy is no longer a Button concern — ButtonCopy composes a <a-copy> child; see copy-props.ts.)

    href is optional, so you can pass a conditional URL: href={maybeUrl} (string | undefined) type-checks, and a falsy href degrades to a plain button — a definite string renders <a role="button">, an absent / undefined href renders <a-button>, mirroring the href != null runtime check. Keeping it required forced a two-render (href ? … : …) or a conditional spread, and made TypeScript blame the wrong prop: with href: string | undefined matching neither branch, the intersection fell through to PriorityMode and reported a spurious "priority is missing". The anchor props (href / target / rel / download / ping) still can't combine with the button props (type / form).

    Type Declaration

    • {
          href?: string;
          target?: string;
          rel?: string;
          download?: string | boolean;
          ping?: string;
          type?: never;
          form?: never;
      }
      • Optional Unreviewedhref?: string

        URL to link to. A definite string renders <a role="button">; omit it (or pass undefined) to render <a-button>, so href={maybeUrl} degrades to a plain button when the URL is absent.

      • Optional Unreviewedtarget?: string

        Anchor target.

      • Optional Unreviewedrel?: string

        Anchor rel.

      • Optional Unrevieweddownload?: string | boolean

        Anchor download attribute. Empty string / true triggers a download with the resource's default name; a string overrides the filename.

      • Optional Unreviewedping?: string

        Space-separated URLs the browser pings on navigation.

      • Optionaltype?: never
      • Optionalform?: never
    • {
          href?: never;
          target?: never;
          rel?: never;
          download?: never;
          ping?: never;
          type?: "button" | "submit" | "reset";
          form?: string;
      }
      • Optionalhref?: never
      • Optionaltarget?: never
      • Optionalrel?: never
      • Optionaldownload?: never
      • Optionalping?: never
      • Optional Unreviewedtype?: "button" | "submit" | "reset"

        Form submission type.

      • Optional Unreviewedform?: string

        Form id when the button isn't a descendant of its form.