@project-jade-garden/reka-ui
Version:
Reka UI anatomy slots for headless design
29 lines (28 loc) • 906 B
TypeScript
import { SVATraits } from 'jade-garden';
/**
* **Toggle Group**
* @description A set of two-state buttons that can be toggled on or off.
* @see [source](https://reka-ui.com/docs/components/toggle-group#anatomy)
*/
export declare const slots: readonly ["root", "item"];
/**
* **Toggle Group**
* @description A set of two-state buttons that can be toggled on or off.
* @see [source](https://reka-ui.com/docs/components/toggle-group#anatomy)
*/
export type Slots = (typeof slots)[number];
/**
* **Toggle Group**
* @description A set of two-state buttons that can be toggled on or off.
* @see [source](https://reka-ui.com/docs/components/toggle-group#api-reference)
*/
export type Traits = SVATraits<Slots, {
root: {
orientation: "vertical" | "horizontal";
};
item: {
state: "on" | "off";
disabled: "";
orientation: "vertical" | "horizontal";
};
}>;