Field
Extends:
react~Component → Field
Direct Subclass:
Base class for all form fields. It's supposed to be used as a super class but in case it's used as a component it renders an input type text
SCSS Import
@import "~@orloxx/ui-core/scss/form/field";
Example:
<Field id='username' name='username'
label='Username' placeholder='Enter your username'
suggestion='Only accepts letters and numbers'
patternError='Input format is wrong, only accepts letters and numbers'
required pattern='^[a-zA-Z0-9]+$' />
Static Public Members
public static propTypes: Object source
Properties:
Name | Type | Attribute | Description |
id | String | The input element |
|
name | String | The input element |
|
label | String | The label attached to the input field |
|
type | String |
|
The input element |
required | Boolean |
|
The input element |
pattern | String |
|
The pattern to validate the input's value |
placeholder | String |
|
Placeholder text |
requiredLabel | String |
|
The required label added to the input's label |
requiredError | String |
|
The error message when the required input is empty |
patternError | String |
|
The error message when the input's pattern is not matched |
suggestion | String |
|
Suggestion text for the user |