EnFormGroup
Preview
Props
| Name | Description | Default | Control |
|---|---|---|---|
| label | Label text to display. string | "" | |
| horizontal | Sets the layout of the label to the left of the form field. Note: must be inside a boolean | false | |
| showRequired | Displays asterisk (*) next to the label to indicate a required field. boolean | true | |
| field | A single field object to dynamically create the input inside of the form group. Key-value pairs can be any valid props for input components. Record<string, any> | unknown | |
| modelValue | string | "" | |
| inputGroupProps | Record<string, any> | unknown | |
| hideLabel | Does not render a label and adds aria-label to the input. boolean | false | |
| displayOnly | Passes down the boolean | false |
Slots
default
Accepts any EnInput to pair with a label element.
label-inner
Renders inside the label element, after the text provided by the label prop and required asterisk. Can be used to customize the label or add a tooltip.
Events
No events defined.
Methods
No methods defined.