@jay-js/ui
Version:
A library of UI components for Jay JS with Tailwind CSS and daisyUI.
9 lines (8 loc) • 457 B
TypeScript
import type { TBase, TBaseTagMap } from "@jay-js/elements";
export type TToggle<T extends TBaseTagMap> = {
label?: string;
color?: "toggle-primary" | "toggle-secondary" | "toggle-accent" | "toggle-neutral" | "toggle-success" | "toggle-warning" | "toggle-info" | "toggle-error";
size?: "toggle-xl" | "toggle-lg" | "toggle-md" | "toggle-sm" | "toggle-xs";
position?: "toggle-before" | "toggle-after";
formControl?: TBase<T>;
} & TBase<T>;