Skip to content

MazInputPrice ​

MazInputPrice is a standalone component that replaces the standard html input text and formats the text enter according to the currency provided

Before use it, you should install the MazUi plugin in your project, follow instructions in Getting Started

Basic usage ​

Enter your price


priceValue: 2

formattedPrice:

Tips ​

TIP

This component use MazInput, so it inherits all his props

Props ​

NameDescriptionTypeRequiredDefaultPossible values
model-valuev-model The value of the inputnumberNo--
currencyThe currency to usestringNo"EUR"-
localeThe locale to usestringNo"fr-FR"-
minThe minimum value that the input can acceptnumberNoNumber.NEGATIVE_INFINITY-
maxThe maximum value that the input can acceptnumberNoNumber.POSITIVE_INFINITY-
no-iconThe input will be displayed without iconbooleanNofalse-
blockThe input will be displayed in full widthbooleanNo--
errorWill display the input in error state.booleanNo--
hintThe hint text to display below the input.stringNo--
successWill display the input in success state.booleanNo--
warningWill display the input in warning state.booleanNo--
currency-optionsOptions for the currency helper - seeOmit<FilterCurrencyOptions, "currency">No--

Events ​

Event namePayloadDescription
update:model-valuevalue: number | undefined
blurvalue: Event
focusvalue: Event
inputvalue: number | undefined
formattedvalue: string | undefined