Skip to content

Button

Figma: https://www.figma.com/design/NabDWLMexKV7z5ayB5iZT7/%5BWeb%5D-WOW3--Design-System?node-id=4239-2114&node-type=frame&t=5hY6Wv01WLEtroGU-0

Basic Usage

import { Button } from "@ronin-nexus/atomic";
 
<Button>Hello</Button>;
Button Design System Props
PropsTypeType
variant?VariantDesign system variant
size?SizeButton size
mode?ModeButton mode
startIcon?JSX.ElementIcon at start position
endIcon?JSX.ElementIcon at the end position
icon?booleanUse Button as IconButton (render icon only)
text?stringRender children as text
asChild?booleanMerges its props onto its immediate child.

Variants

Type: brand | gray | info | danger | warn | success

Default: brand

Size

Type: xs | sm | base | lg

Default: xs

Mode

Type: solid | light | ghost

Default: solid

light

light

Large

Icons

Start Icon End Icon Icon

Disabled Buttons

<Button disabled>Button</Button>

Loading Button

<Button loading>Button</Button>

As child

<Button asChild>
  <Link to="/login">Login</Link>
</Button>
Login