Input Group - Iteration of the fields, or new component? #1514
Replies: 2 comments 3 replies
-
At the moment there is an // type prop
const TYPES = {
DATE: 'date',
MASK: 'mask',
NUMBER: 'number',
PASSWORD: 'password',
SUI_PASSWORD: 'sui-password',
TEXT: 'text',
TEL: 'tel',
EMAIL: 'email'
}
// as inputTypes It distinguish between
We need to provide a way to visually group the inputs in order to create an element which groups them with its inner logic mask or type. The main goal is to tackle the behavior needed in the existent <AtomInputGroup>
<AtomInput type="month"/>
<AtomInput type="year"/>
</AtomInputGroup> <AtomInputGroup>
<AtomInput type="number"/>
<AtomInput type="number"/>
</AtomInputGroup> The CSS rules which wraps the input elements with borders might be re-written to make them invisible with a more restrictive rule. A CSS rule that wraps the inner declared inputs creates the visually border wrapper. It can be interesting (nice to have) also to provide an onChange handler that gets all inner input values setted on a context. |
Beta Was this translation helpful? Give feedback.
-
After a long time, we stop then PoC due to the limitations of existant status. We cannot customize the with f the inputs in all cases because the unique width customization we have is the charSize prop, but its is ignored in input types diferent than Classnames are not an option too because it is closed to |
Beta Was this translation helpful? Give feedback.
-
Hello, we need to be able to group inputs, within a single Field.
This is an old request from JM long ago for MA.
The need arrived again, now for dates in IJ.
Please see image attached:
All the values of the fields should be available for the elements of the group
There should be no space between the elements
It has to be possible to group the different input and select current sizes
Q: Should this be a new component "input group"?
Beta Was this translation helpful? Give feedback.
All reactions