UNPKG

@opencloud-eu/design-system

Version:

OpenCloud Design System is used to design OpenCloud UI components

80 lines (79 loc) 2.38 kB
export interface Props { /** * @docs The element ID of the input. */ id?: string; /** * @docs The value of the input. */ modelValue?: string; /** * @docs Determines if the input should have a clear button. * @default true */ clearButtonEnabled?: boolean; /** * @docs Determines if the input is disabled. * @default false */ disabled?: boolean; /** * @docs The label of the input element. */ label: string; /** * @docs The error message to be displayed below the input. */ errorMessage?: string; /** * @docs Determines if the message line should be fixed. * @default false */ fixMessageLine?: boolean; /** * @docs The description message to be displayed below the input. */ descriptionMessage?: string; /** * @docs Determines if a required mark (*) should be displayed next to the label. * @default false */ requiredMark?: boolean; } export interface Emits { /** * @docs Emitted when the value of the input has changed after the user confirms or leaves the focus. */ (e: 'change', value: string): void; /** * @docs Emitted when the value of the input has updated. */ (e: 'update:modelValue', value: string): void; } export interface Slots { /** * @docs Can be used to overwrite the default rendering of the label. */ label?: () => unknown; } declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<Slots> & Slots; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { change: (value: string) => any; "update:modelValue": (value: string) => any; }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{ onChange?: (value: string) => any; "onUpdate:modelValue"?: (value: string) => any; }>, {}, {}, {}, {}, string, import('vue').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; }; };