Button

Used to trigger an operation.

Import

import { Button } from 'raw-ui';

Types

Sizes

Variant

Outline

Ghost

Shadow

Loading

Disabled

Icons

API

PropDescriptionTypeDefault
typebutton type'default' | 'primary' | 'success' | 'warning' | 'error''default'
sizebutton size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'
variantbutton variant'outline' | 'ghost' | 'shadow''outline'
loadingset the loading status of buttonbooleanfalse
disableddisable buttonbooleanfalse
iconrender an icon on the left of the textReact.ReactNode-
iconRightrender an icon on the right of the textReact.ReactNode-
onClickclick handlerReact.MouseEventHandler-
...native propsReact.ButtonHTMLAttributes-