Appearance
Toggle
Nút toggle pressed/unpressed.
ts
import { Toggle } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { Toggle } from "@minap/ui";
export function Example() {
return (
<>
<Toggle aria-label="Bold">B</Toggle>
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
pressed / defaultPressed | boolean | — | |
variant / size | CVA | — | Xem toggleVariants |
disabled | boolean | false |
Behavior
- export toggleVariants