Default toggle
import { Toggle } from "@combric/react";
export function Example() {
return <Toggle defaultPressed>Pin project</Toggle>;
}Pressable tool-state button using aria-pressed.
@combric/react · v1.1.1 · Current
import { Toggle } from "@combric/react";Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.
import { Toggle } from "@combric/react";
export function Example() {
return <Toggle defaultPressed>Pin project</Toggle>;
}import { Toggle } from "@combric/react";
export function Example() {
return <Toggle>Pin project</Toggle>;
}import { Toggle } from "@combric/react";
export function Example() {
return <Toggle defaultPressed disabled>Pin project</Toggle>;
}| Name |
|---|
Toggle |
| Property / capability | Published contract |
|---|---|
| Contract | pressed/defaultPressed |
| Contract | onPressedChange |
| Contract | native button props |
Uses a native button and exposes pressed state through aria-pressed.
Native Enter and Space activation.
Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.