Input Mask β
INFO
This component uses the input mask from PrimeVue. It's full documentation can be found here. It does have some Codey specific features like automation ids, props and slots.
import { XerInputMask } from "@xerius/codey-components";
The InputMask
component supports common used masks out of the box which can be set through the mask
prop. The following masks are currently custom made for the Xerius applications and exported:
name | example | type |
---|---|---|
belgischeIbanMask | BE45 4656 4564 5464 | string |
rijksregisternummerMask | 12.34.56-789.12 | string |
import { belgischeIbanMask, rijksregisternummerMask } from "@xerius/codey-components";
Showcases β
Default β
Belgische Iban β
Rijksregisternummer β
With error message β
As Disabled β
With Form Control β
Note
Using a component directly without XerFormControl
or <label>
requires you to place the correct aria-label
on the underlying component input element.
Props β
All props from the Prime Input Number can be provided. The full documentation can be found here.
Events β
All events from the Prime Input Number can be provided. The full documentation can be found here.
Slots β
All slots from the Prime Input Number can be provided. The full documentation can be found here.
Automation Ids β
A data-automation-id
needs to be provided to the component as Prime Vue based components do not have a default data-automation-id
.