Menu
View as Markdown

Components

Button

Static fixture output for the Button component contract.

Button keeps the native button element and submit/reset behavior available without JS.

data-statedisabled via native attribute
keyboardSpace or Enter activates the native button
change reasonsnative click or form submit

Usage

The base interactive control, with variant, size, and disabled/loading states.

  • Import the versioned component from @kovojs/ui/button.
  • Copy the source into your app with kovo add button when product code should own the implementation.

Source

  • Package source: packages/ui/src/button.tsx
  • Gallery fixture: examples/gallery/src/demo-fixtures.tsx

Behavior contract

The rendered fixture above includes the component contract table. Interactive pages compile the authored TSX demo and then lift the same contract table from the static fixture, so the visible behavior and documented ARIA/data-state surface stay together.