UNPKG

@ark-ui/vue

Version:

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

41 lines (40 loc) 1.47 kB
import { ButtonHTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue'; import { PolymorphicProps } from '../factory'; import { RootEmits, RootProps } from './toggle.types'; export interface ToggleRootBaseProps extends RootProps, PolymorphicProps { } export interface ToggleRootProps extends ToggleRootBaseProps, /** * @vue-ignore */ Omit<ButtonHTMLAttributes, 'disabled'> { } export interface ToggleRootEmits extends RootEmits { } declare function __VLS_template(): { attrs: Partial<{}>; slots: { default?(_: {}): any; }; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: DefineComponent<ToggleRootProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { pressedChange: (pressed: boolean) => any; "update:pressed": (pressed: boolean) => any; }, string, PublicProps, Readonly<ToggleRootProps> & Readonly<{ onPressedChange?: ((pressed: boolean) => any) | undefined; "onUpdate:pressed"?: ((pressed: boolean) => any) | undefined; }>, { disabled: boolean; defaultPressed: boolean; pressed: boolean; }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };