Form
Forms obtain user data and transmit it to the system to either store the data, produce an action, or both.
install | yarn add @clayui/form |
---|---|
version | 3.119.0 |
Stable3.119.0View in LexiconCHANGELOG
Use ClayForm
components for composing forms.
For controlling groups inside forms, use ClayForm.Group
components like the code below:
Copied!
Code Sample (expand to see it)
Validation
.has-error
, .has-success
and .has-warning
classes are used in ClayForm.Group
to identifier validation state of the form group items.
Use ClayForm.FeedbackGroup
and ClayForm.FeedbackItem
for creating custom feedback messages for Form Groups.
ClayForm.FeedbackIndicator
is used to apply an Icon on the feedback message, like the following example:
Copied!
Code Sample (expand to see it)
Group Caption
Use ClayForm.Text
for creating a caption on Form Groups.
Copied!
Code Sample (expand to see it)