UNPKG

vira

Version:

A simple and highly versatile design system using element-vir.

32 lines (31 loc) 1.1 kB
import { type PartialWithUndefined } from '@augment-vir/common'; import { type AttributeValues, type CSSResult } from 'element-vir'; import { ViraIcon } from './vira-icon.element.js'; /** * All inner elements supported by {@link ViraCheckbox}. * * @category Internals */ export type ViraCheckboxInnerElements = 'label' | 'custom-checkbox' | typeof ViraIcon.tagName; /** * Inputs for {@link ViraCheckbox}. * * @category Internal */ export type ViraCheckboxInputs = PartialWithUndefined<{ stylePassthrough: Record<ViraCheckboxInnerElements, CSSResult>; attributePassthrough: Record<ViraCheckboxInnerElements, AttributeValues>; disabled: boolean; }> & { value: boolean; }; /** * A custom checkbox. * * @category Input * @category Elements * @see https://electrovir.github.io/element-vir/vira/book/elements/vira-checkbox */ export declare const ViraCheckbox: import("element-vir").DeclarativeElementDefinition<"vira-checkbox", Readonly<ViraCheckboxInputs>, {}, { valueChange: import("element-vir").DefineEvent<boolean>; }, "vira-checkbox-", "vira-checkbox-", readonly []>;