Button
Trigger an action, such as saving, submitting or deleting.
Examples
Use solid for primary actions, soft for subtle emphasis, outline for secondary actions and ghost for low-priority actions. Loading preserves the label and prevents duplicate clicks. Set type="submit" for form submission, and aria-label for icon-only actions.
Live previewVariants
variants.tsx
Live previewDanger actions
danger.tsx
Live previewSizes
sizes.tsx
Live previewDisabled and loading
states.tsx
Live previewAsync saving
Try saving changes.
loading.tsx
Live previewIcons
icons.tsx
Live previewFull width
full-width.tsx
Button API
Types
Import ButtonProps to describe component props. Option types in the API table link to their detailed fields above.
Forms and localization
Use name to include values in FormData. Uncontrolled fields follow form reset; reset controlled values in application state. Place controls in FormField for labels, help and errors. ConfigProvider supplies regional themes and translated built-in UI. Application labels and options are your responsibility.