@antadesign/anta
    Preparing search index...

    Function ButtonUnreviewed

    • Action button.

      Renders an <a-button> web component (or <a role="button"> when href is set) with the design system's tone × priority matrix applied via CSS attributes.

      Requires @antadesign/anta/elements to be imported (client-side only) to register the underlying custom element.

      Parameters

      Returns any

      <Button label="Save" onClick={save} />
      
      <Button href="/docs" target="_blank" label="Read the docs" />