Button

Action component for primary, secondary, and icon-trigger flows.

Button is consumed natively from `@axonyx/ui/foundry/Button.asx` and uses Foundry CSS tokens.

Variants

Foundry surfaces

Sizes

Usage

Code
ax
import { Button } from "@axonyx/ui/foundry/Button.asx"

<Button href="/docs" variant="primary" surface="forged">
  Read docs
</Button>

Button API

Inline API contract for the native `.asx` component.

  • variant: primary | ghost
  • surface: default | forged
  • size: sm | md | lg