Skip to content
satin

Input group

A field joined with an addon, a select or a button in one block.

https://
.satin.dev

Installation

Terminal
npm i @uisatin/ui
Import
import { 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.

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.

PropTypeDefault
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.