InputGroup
moleculesFuses leading and trailing controls to one Input or Textarea: the field draws the single border and ring, the adornments drop into a bar once a textarea grows.
Message composer
leading FileButton, an autoresize Textarea and a trailing SplitButton; past one row the adornments move to a bar under the text.
Sizes and alignment
size="sm" | "md" | "lg" with a matching box button; align="center" for a single-line Input, "end" (default) pins adornments to a growing textarea.
States
disabled and error flow to the field and the adornments; a trailing label that changes width re-pads the field; a long value scrolls under the button.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
leading | Snippet | — | Overlaid at the inline start of the field, e.g. an icon-only FileButton. |
children required | Snippet | — | The field: an Input or Textarea, optionally wrapped by the consumer. |
trailing | Snippet | — | Overlaid at the inline end of the field, e.g. a Button or SplitButton. |
align | 'end' | 'center' | 'end' | `end` pins the adornments to the bottom edge as a textarea grows; `center` is for a single-line Input. |
size | ControlSize | 'md' | |
disabled | boolean | false | |
error | boolean | false | |
class | string | '' | |
style | string | '' |