UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

37 lines (36 loc) 1.33 kB
import { LabelHTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue'; import { PolymorphicProps } from '../factory'; import { RootEmits, RootProps } from './switch.types'; import { CheckedChangeDetails } from '@zag-js/switch'; export interface SwitchRootBaseProps extends RootProps, PolymorphicProps { } export interface SwitchRootProps extends SwitchRootBaseProps, /** * @vue-ignore */ LabelHTMLAttributes { } export interface SwitchRootEmits extends RootEmits { } declare const _default: __VLS_WithTemplateSlots< DefineComponent<SwitchRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { checkedChange: (details: CheckedChangeDetails) => any; "update:checked": (checked: boolean) => any; }, string, PublicProps, Readonly<SwitchRootProps> & Readonly<{ onCheckedChange?: ((details: CheckedChangeDetails) => any) | undefined; "onUpdate:checked"?: ((checked: boolean) => any) | undefined; }>, { invalid: boolean; checked: boolean; disabled: boolean; required: boolean; readOnly: boolean; defaultChecked: boolean; }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, { default?(_: {}): any; }>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };