Layout
InputLayout component is a wrapper used to manage input fields with labels, validation, and additional features.
Although it is not recommended to use InputLayout directly, it serves as a base component for components
Input, select, aria, calendar and textEditor components.
This documentation describes the available properties and how to work with them, providing examples for each property.Properties
mode
Styling mode for the input layout.
Type: StyleMode or undefined
Description:
The mode property specifies the styling mode for the input layout. It can be set to different style modes such as outlined, underlined, or filled.
label
The label text for the input.
Type: string or undefined
Description:
The label property defines the text label for the input field. It is displayed alongside the input element to provide context to the user.
labelMode
The mode for displaying the label.
Type: LabelMode or undefined
Description:
The labelMode property determines how the label is displayed. It can be set to different modes such as "offsetDynamic", "vanishing", or "static".
isInvalid
Indicates whether the input is invalid.
Type: boolean or undefined
Description:
The isInvalid property is a boolean that indicates whether the input element is in an invalid state. It is used for validation purposes.
messageInvalid
The validation error message for the input.
Type: string or undefined
Description:
The messageInvalid property holds the validation error message that is displayed when the input is invalid.
This field is required.
required
Marks the input as required.
Type: boolean or undefined
Description:
The required property is a boolean that marks the input field as required. It indicates that the input must be filled out before submitting the form.
loading
Indicates whether the input is in a loading state.
Type: boolean or undefined
Description:
The loading property is a boolean that indicates whether the input element is in a loading state. It is used to show a loading indicator.
disabled
Disables the input field.
Type: boolean or undefined
Description:
The disabled property is a boolean that disables the input field, making it non-interactive.
help
Additional help text displayed for the input.
Type: string or undefined
Description:
The help property provides additional help text that is displayed alongside the input element to assist the user.
clear
Enables a clear button for the input.
Type: boolean or undefined
Description:
The clear property is a boolean that enables a clear button for the input element, allowing the user to clear the input value.
width
Width of the input layout.
Type: TWidth or undefined
Description:
The width property defines the width of the input layout. It can be set to a specific value or a percentage.
height
Height of the input layout.
Type: THeight or undefined
Description:
The height property defines the height of the input layout. It can be set to a specific value.
animation
Animation type for transitions within the layout.
Type: "transition-all duration-500" or "transition-none" or string or undefined
Description:
The animation property specifies the type of animation for transitions within the layout. It can be set to predefined animation types or custom values.
classBody
Custom CSS class for the body of the layout.
Type: StyleClass or "mb-6 rounded-md" or undefined
Description:
The classBody property allows you to apply custom CSS classes to the body of the input layout.
class
Custom CSS class for the layout container.
Type: StyleClass or undefined
Description:
The class property allows you to apply custom CSS classes to the layout container.