UNPKG

ui-ingredients

Version:

Headless component library for Svelte powered by zag

9 lines (8 loc) 525 B
import type { Merge, SetOptional } from 'type-fest'; import type { HtmlIngredientProps } from '../types.js'; import type { CreateCheckboxProps, CreateCheckboxReturn } from './createCheckbox.svelte.js'; export interface CheckboxProps extends Merge<HtmlIngredientProps<'label', HTMLLabelElement, CreateCheckboxReturn>, SetOptional<CreateCheckboxProps, 'id'>> { } declare const CheckboxRoot: import("svelte").Component<CheckboxProps, {}, "ref">; type CheckboxRoot = ReturnType<typeof CheckboxRoot>; export default CheckboxRoot;