Input group
A field joined with an addon, a select or a button in one block.
Installation
npm i @uisatin/uiimport { InputGroup } from '@uisatin/ui/input-group'About 10.8 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.
npx shadcn@latest add https://uisatin.dev/r/input-group.json https://uisatin.dev/r/input.jsonAdds input-group.tsx, button.tsx, form-field.tsx, input.tsx, labels.tsx and spinner.tsx to components/ui.
First time with Satin? Set it up once, styles and fonts included, with the installation guide.
API Reference
The InputGroup component is a div with role="group" that joins Inputs, Selects, Buttons and InputGroupAddons into one block of one height.
| Prop | Type | Default |
|---|---|---|
size | "sm""md""lg" | "md" |
className | string | — |
ref | Ref<HTMLDivElement> | — |
...props | ComponentProps<'div'>Other attributes go to <div> | — |
Accessibility
A div with role="group" around the parts. Give it an aria-label, or wrap it in a FormField whose label names the field inside. Each Input, Select and Button keeps its own name and tab stop; an InputGroupAddon is plain text.
Something wrong or missing on this page?
Report a problemSuggest an improvement