Button
Trigger actions with customizable buttons in various styles, sizes, and states.
When to Use
- To trigger an action or event, such as submitting a form or opening a dialog
- As a primary call-to-action or secondary interaction point
- To group related actions together with Button.Group
Import
Examples
Button Types
Orizon provides five button types for different semantic contexts.
Sizes
Three sizes are available: small, middle (default), and large.
With Icons
Add icons before or after button text using icon or iconPosition.
Danger
Use the danger prop for destructive actions.
Ghost
Ghost buttons have transparent backgrounds, suitable for colored backgrounds.
Loading
Show a spinner to indicate an in-progress action.
Block
Block buttons stretch to the full width of their parent.
Disabled
Button Group
Use Button.Group to group related buttons with connected styling.
API
ButtonProps
type—"primary" | "default" | "dashed" | "link" | "text"— Visual style variant (default:"default")size—"small" | "middle" | "large"— Button size (default:"middle")shape—"default" | "circle" | "round"— Button shape (default:"default")icon—ReactNode— Icon element to displayiconPosition—"start" | "end"— Position of the icon (default:"start")loading—boolean— Show loading spinner (default:false)danger—boolean— Apply danger/destructive styling (default:false)ghost—boolean— Transparent background variant (default:false)block—boolean— Full-width button (default:false)disabled—boolean— Disable interactions (default:false)hint—string— Tooltip text on hoverhref—string— Renders as an anchor linkhtmlType—"button" | "submit" | "reset"— Native button type (default:"button")
ButtonGroupProps
size—"small" | "middle" | "large"— Size for all buttons in the groupclassName—string— Custom CSS classchildren—ReactNode— Button elements