GWAN.DEV


Foundations

Icons

Actions

Buttons

Form Controls

Input

Text Area

Select Dropdown

Filter Dropdown

Checkbox

Radio Button

Switch

File Uploader

Color Picker

Multi Select

Search Input

Slider

OTP Input

Date Picker

Time Picker

Date Range Picker

Data Display

Table

Pagination

Progress Bar

Stat Card

Circular Progress

Navigation

Side Menu

Menu Bar

Tabs

Breadcrumb

Ellipsis

Content & Layout

Card

Divider

Banner

Carousel

Accordion

Timeline

Stepper

List

Overlays

Modal

Drawer

Popover

Command Palette

Dropdown Menu

Context Menu

Indicators

Tags

Chips

Badge

Avatar

Avatar Group

Tooltip

Skeleton

Spinner

Feedback

Snackbar

Alert

Callout

State

Buttons

Playground
Actions
  1. Interact with the preview to see callbacks fire.
Content
string

Text inside the button. Leave empty for an icon-only button.

Default—
ReactNode

Icon shown before the label.

Default—
ReactNode

Icon shown after the label.

Default—
Appearance
BUTTON_VARIANTS

Visual emphasis. Use one primary button per view.

DefaultBUTTON_VARIANTS.PRIMARY
BUTTON_SIZE

Height, padding and text size. MD matches form element height.

DefaultBUTTON_SIZE.MD
BUTTON_EDGE_STYLE

Corner style.

DefaultBUTTON_EDGE_STYLE.ROUNDED
Behaviour
boolean

Blocks clicks and dims the button.

Defaultfalse
"button" | "submit"

Native button type. Use submit inside a form.

Default"button"
Events
() => void

Called when the button is clicked.

Default—
Logged in Actions
Advanced
string

Extra classes on the button element.

Default""
Usage
import { Button } from "gwan-design-system";

<Button label="Label" onClick={() => {}} />