naive-ui/demo/documentation/components/button/enUS/index.md

888 B

Button

Button is used to trigger some actions.

Demos

basic
text
disabled
icon
events
shape
ghost
loading
group
debug

Props

Button

Name Type Default Description
size 'small' | 'medium' | 'large' 'medium'
type 'default' | 'primary' | 'success' | 'info' | 'warning' | 'error' 'default'
text boolean false
ghost boolean false
disabled boolean false
circle boolean false
round boolean false
loading boolean false
icon-placement 'left' | 'right' 'left'

Button Group

Name Type Default Description
vertical boolean false

Slots

Button

Name Parameters Description
default ()
icon ()

Button Group

Name Parameters Description
default ()

Events

Button

Name Parameters Description
click (e: MouseEvent)