maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
53 lines (52 loc) • 1.96 kB
TypeScript
import type { Color, Size } from './types';
import { type HTMLAttributes } from 'vue';
export type { Color, Size };
export interface Props {
/** Style attribut of the component root element */
style?: HTMLAttributes['style'];
/** Class attribut of the component root element */
class?: HTMLAttributes['class'];
/** @model The modelValue of the input */
modelValue?: (string | number)[];
/** The placeholder of the input */
placeholder?: string;
/** The label of the input */
label?: string;
/** Disable the input */
disabled?: boolean;
/** Display the input with error style */
error?: boolean;
/** Display the input with success style */
success?: boolean;
/** Display the input with warning style */
warning?: boolean;
/** The size of the input */
size?: Size;
/** The color of the input */
color?: Color;
/** The input will be displayed in full width */
block?: boolean;
/** Add tags on blur */
addTagsOnBlur?: boolean;
/** The hint text to display below the input. */
hint?: string;
}
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:model-value": (value?: (string | number)[] | undefined) => any;
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
"onUpdate:model-value"?: ((value?: (string | number)[] | undefined) => any) | undefined;
}>, {
label: string;
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
error: boolean;
success: boolean;
warning: boolean;
size: Size;
color: Color;
class: HTMLAttributes["class"];
disabled: boolean;
modelValue: (string | number)[];
placeholder: string;
addTagsOnBlur: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
export default _default;