Closed
Description
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):
Button
SelectField
TextField
- their label must be hidden, but present for accessibility reasons
- some of thier props will be overloaded
size
according to thesize
prop of theInputGroup
element- for
Button
the proppriority
will either be set tofilled
as there is no one to pay for the other options or it must work out of the box with no extra work - for
SelectField
andTextField
the propvariant
will either be set tooutline
as 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 thechildren
elements, the connection should be expressed in textual form in the actual message. The individualchildren
elements must not show anyvalidationText
, they only show their respectivevalidationState
.size
: Defines the size of thechildren
elements. If the element specifies a size it will be overloaded by theInputGroup
prop value.layout
: Indicates if it ishorizontal
orvertical
Design:
Metadata
Metadata
Assignees
Type
Projects
Status
✅ Done