Button

Button with accessible presentation and local state.

Installation

Install the shared package once in your Exact app. This version is a beta.
bun add --exact @rightui/ui@0.4.0-beta.4
The Exact compiler requires Bun 1.4.2, regardless of which package manager installs the package.
Complete the font, app metadata and root provider setup (required for both installation methods).
Import
use Button, IconButton, ButtonContent, DisclosureButton from "@rightui/ui"

Usage

Import Button, ButtonGroup from @rightui/ui. Store its value in state and update it through the provided action callback.

API Reference

Properties from the component source. State lives in your component; actions receive the updated value.
Button.id
string
Button.label
string
Button.variant
string
Button.disabled
bool
Button.press
action
IconButton.id
string
IconButton.label
string
IconButton.variant
string
IconButton.disabled
bool
IconButton.press
action
ButtonContent.id
string
ButtonContent.label
string
ButtonContent.variant
string
ButtonContent.size
string
ButtonContent.disabled
bool
ButtonContent.press
action
DisclosureButton.id
string
DisclosureButton.label
string
DisclosureButton.variant
string
DisclosureButton.controls
string
DisclosureButton.expanded
bool
DisclosureButton.icon
bool
DisclosureButton.press
action