Skip to Content

Button

The Button component renders a Windows 98 styled push button with raised 3D borders.

Props

PropTypeDefaultDescription
activebooleanfalseRenders the button in a pressed state.
disabledbooleanfalseDisables button interaction.
primarybooleanfalseApplies the primary button emphasis.
classNamestring-Adds custom classes to the button.
childrenReactNode-Button label content.

Examples

Basic buttons

Pressed state

ARIA

Button renders a native button element and preserves the browser’s default button semantics.

Keyboard

KeyBehavior
EnterActivates the button.
SpaceActivates the button.

SSR

Button is a client component through the package root. Its initial markup is stable when active, disabled, and label content are stable between server and client.

Last updated on