GitHub

Button

PreviousNext

Four button variants for the dominant action on a screen and supporting actions around it.

Variants

Buttons are separate exports per variant. Pick the dominant one per screen — at most one PrimaryButton, plus supporting Secondary / Tertiary / Quaternary as needed.

Pass href and the button renders inside <UIKitLink> — that resolves to next/link when wrapped in <NextUIKitProvider>, a plain <a> otherwise. replace controls history vs push.

Disabled

Pass disabled — forwarded straight to Arco.

Loading

Pass loading and the label is swapped for a spinner. Use during async actions to block double-submits.

Installation

pnpm add @appboxo/ui-kit

Theme tokens

--button-primary-*, --button-default-*, --button-ghost-* (Arco-managed) plus --tertiary-button-* and --quaternary-button-* (kit-only).