Button

Buttons are widgets that trigger various actions like opening a dialog, confirming an action, or initiating a delete operation. They can contain text, icons, or both, and are clicked or tapped to execute the desired action.

Import

import { Button } from '@vortex-kit/vortex';
import type { ButtonProps } from '@vortex-kit/vortex';

Display

<Button variant="primary" size="md">Primary</Button>

Allied components

Button

Prop
Type
Default
variant
union
primary
leftIcon
SVGIcon
rightIcon
SVGIcon
onlyIcon
SVGIcon
ariaLabel
string
size
union
md
rounded
boolean
loading
boolean
tone
union
disabled
boolean
fullWidth
boolean
children
React.ReactNode
className
union
as
keyof React.JSX.IntrinsicElements
button
attributes
object
href
string
type
union
button
onClick
function

Button.Group

Prop
Type
Default
children
React.ReactNode
className
union
attributes
object

Button.Aligner

Prop
Type
Default
children
React.ReactNode
className
union
attributes
object
side
union | array
Button Component Props — Vortex Design System