vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
63 lines (51 loc) • 973 B
text/typescript
import defaultConfig from "./config";
import type { ComponentConfig } from "../types";
import type { UCheckboxOption } from "../ui.form-checkbox/types";
export type Config = typeof defaultConfig;
export interface Props {
/**
* Checkbox value.
*/
modelValue?: boolean | string | number;
/**
* Checkbox state options.
*/
options?: UCheckboxOption[];
/**
* Checkbox name.
*/
name?: string;
/**
* Checkbox size.
*/
size?: "sm" | "md" | "lg";
/**
* Checkbox color.
*/
color?:
| "primary"
| "secondary"
| "error"
| "warning"
| "success"
| "info"
| "notice"
| "neutral"
| "grayscale";
/**
* Label placement.
*/
labelAlign?: "left" | "right";
/**
* Make checkbox disabled.
*/
disabled?: boolean;
/**
* Component config object.
*/
config?: ComponentConfig<Config>;
/**
* Data-test attribute for automated testing.
*/
dataTest?: string | null;
}