Demo

Button attributes, classes and server rendering

Documented in Button.

Button attributes, classes and server rendering

className and style on a Button, DOM attributes passed through to the native button, a handler that vetoes the built-in toggle with preventDefault, and a status that shows the demo was rendered on the server and then hydrated.

Archived items stay searchable for 30 days.

Rendering: server HTML