UNPKG

vue-bare

Version:

**Unstyled Vue components for frustration-free human interactions**

57 lines (56 loc) 1.96 kB
import { ClassValue } from './types'; export interface PasswordInputBareProps { /** * @see [Apple Docs](https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_an_html_input_element) * @see [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) */ autocomplete: 'current-password' | 'new-password'; id: string; name: string; autofocus?: boolean; class?: ClassValue; disabled?: boolean; toggleable?: boolean; value?: string; wrapperClass?: ClassValue; } interface Props extends PasswordInputBareProps { class: ClassValue; } type __VLS_Props = Props; declare const model: import('vue').ModelRef<string, string, string, string>; type __VLS_PublicProps = { modelValue?: typeof model['value']; } & __VLS_Props; declare function __VLS_template(): { attrs: Partial<{}>; slots: { toggle?(_: { isVisible: boolean; toggle: () => void; }): any; }; refs: { 'input-ref': HTMLInputElement; }; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, { focus: () => void; toggleVisibility: () => void; isVisible: import('vue').Ref<boolean, boolean>; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "update:modelValue": (value: string) => any; }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ "onUpdate:modelValue"?: (value: string) => any; }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { 'input-ref': HTMLInputElement; }, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };