Skip to content

Button

A basic button component for triggering actions.

Basic Usage

html
<parrot-button type="primary">Primary</parrot-button>
<parrot-button type="success">Success</parrot-button>
<parrot-button type="warning">Warning</parrot-button>
<parrot-button type="danger">Danger</parrot-button>

Props

PropTypeDefaultDescription
type'default' | 'primary' | 'success' | 'warning' | 'danger''default'Button type
size'large' | 'default' | 'small''default'Button size
disabledbooleanfalseDisabled state
loadingbooleanfalseLoading state
blockbooleanfalseFull width block button
roundbooleanfalseRounded button

Events

EventDescription
clickTriggered on button click (disabled when disabled or loading)

Released under the MIT License.