Input Group
A Text Input with added elements that provide a more complex input structure.
install | yarn add @clayui/form |
---|---|
version | 3.119.0 |
Stable3.119.0View in LexiconCHANGELOG
If you want to create groups of inputs, use <ClayInput.Group>
, <ClayInput.GroupInsetItem>
, <ClayInput.GroupItem>
and <ClayInput.GroupText>
.
Separated
Wrap each item in a <ClayInput.Group>
with <ClayInput.GroupItem>
. If you want to make an item shrink to fit, use the shrink
property.
Copied!
Code Sample (expand to see it)
Connected
For creating a connected input group, use prepend
property for each <ClayInput.GroupItem>
and for the last <ClayInput.GroupItem>
use the property append
.
Copied!
Code Sample (expand to see it)
Mixed
Copied!
Code Sample (expand to see it)
Stacked
For creating a stack of the items inside a item group, use stacked
property in the <ClayInput.Group>
and use shrink
property for using in screens sizes less than 576px.
Copied!
Code Sample (expand to see it)