maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
49 lines (48 loc) • 2.04 kB
TypeScript
import { FilterCurrencyOptions } from '@maz-ui/utils/helpers/formatCurrency';
export interface MazInputPriceProps {
/** @model The value of the input */
modelValue?: number;
/** The currency to use */
currency?: string;
/** The locale to use */
locale?: string;
/** The minimum value that the input can accept */
min?: number;
/** The maximum value that the input can accept */
max?: number;
/** The input will be displayed without icon */
noIcon?: boolean;
/** The input will be displayed in full width */
block?: boolean;
/** Will display the input in error state. */
error?: boolean;
/** The hint text to display below the input. */
hint?: string;
/** Will display the input in success state. */
success?: boolean;
/** Will display the input in warning state. */
warning?: boolean;
/** Options for the currency helper - [see](https://maz-ui.com/helpers/currency) */
currencyOptions?: Omit<FilterCurrencyOptions, 'currency'>;
}
declare const _default: import('vue').DefineComponent<MazInputPriceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
blur: (value: Event) => any;
focus: (value: Event) => any;
input: (value: number | undefined) => any;
"update:model-value": (value: number | undefined) => any;
formatted: (value: string | undefined) => any;
}, string, import('vue').PublicProps, Readonly<MazInputPriceProps> & Readonly<{
onBlur?: ((value: Event) => any) | undefined;
onFocus?: ((value: Event) => any) | undefined;
onInput?: ((value: number | undefined) => any) | undefined;
"onUpdate:model-value"?: ((value: number | undefined) => any) | undefined;
onFormatted?: ((value: string | undefined) => any) | undefined;
}>, {
max: number;
min: number;
currency: string;
locale: string;
modelValue: number;
noIcon: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
export default _default;