Input Text β
INFO
This component uses the input text from PrimeVue. It's full documentation can be found here. It does have some Codey specific features like automation ids, props and slots.
INFO
It is recommended to use the XerInputText
component in combination with the XerFormControl
component to have a complete UI with label, caption and error message etc.
import { XerInputText } from "@xerius/codey-components";
Showcases β
Default β
As Date β
WARNING
This is depricated in favor of the calendar
component.
With Error message β
With Icon β
WARNING
This is depricated in favor of the XerInputIcon
component.
Multiple Inputs β
With Text Mask β
WARNING
This is depricated in favor of the XerInputMask
component.
With Character Counter β
Character Counter info:
Notice to get the character counter working, you will need to follow the following steps:
- Use the
XerFormControl
component and use theXerInputText
component as child component. - Add the
has-counter
prop to theXerFormControl
component. - Set the
input-value
prop of theXerFormControl
to the value of the reactive variable you use for thev-model
of theXerInputText
component. - Create a template reference to the
XerFormControl
component to listen to the exposedcounterExceeded
variable. - Use this
counterExceeded
to toggle theinvalid
prop state of theXerInputText
component. - If needed, Add the
counter-limit
prop to theXerFormControl
component to set the max limit of characters for the character counter.
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
.