Button

Main user control action for the user.

<Button animate layer='success'>Arwes</Button>
Prop nameTypeDefaultDescription
AnimationanyAnimationComponent
HighlightanyHighlightComponent
FrameanyFrameComponent
themeanyRequired
classesanyRequired
animatebool
showbooltrue
animationobject
soundsobject{}

It uses the click player.

layerenum'control'
One of: 'primary', 'secondary', 'header', 'control', 'success', 'alert', 'disabled'
disabledbool
activebool
levelnumber2

The inside <Frame /> level.

buttonPropsobject

Props to pass down to the <button /> element.

childrenany

If function, receives the animation status object.

Method nameParametersDescription
onClick
ev:Event

Internal click event listener.

Source code: src/Button Open in: Playground