create inputgroup component
mbohal opened this issue · 0 comments
mbohal commented
We need a new layout component InputGroup.
It will accept as props:
children: an array of elements- one of (defined in docs only, we can not validate their type):
ButtonSelectFieldTextField
- their label must be hidden, but present for accessibility reasons
- some of thier props will be overloaded
sizeaccording to thesizeprop of theInputGroupelement- for
Buttonthe propprioritywill either be set tofilledas there is no one to pay for the other options or it must work out of the box with no extra work - for
SelectFieldandTextFieldthe propvariantwill either be set tooutlineas there is no one to pay for the other options or it must work out of the box with no extra work
- one of (defined in docs only, we can not validate their type):
validationTexts: An array of validation messages. These are not semantically tied to thechildrenelements, the connection should be expressed in textual form in the actual message. The individualchildrenelements must not show anyvalidationText, they only show their respectivevalidationState.size: Defines the size of thechildrenelements. If the element specifies a size it will be overloaded by theInputGroupprop value.layout: Indicates if it ishorizontalorvertical
Design: