Input group
An input or a textarea with what sits beside it, such as an icon, a prefix, a button or a counter, in one box.
npx shadcn add https://kinoui.com/r/input-group.jsonCopy install command
Examples
Icon
An addon at the start holds an icon; a press on it puts the caret in the input.
Prefix
Text in InputGroupText reads as the start of the value; an address reads left to right in every language.
Copy API key
Buttons
An addon at the end holds a button or a hint; give an icon-only button an aria-label. Copy button (opens in a new tab) copies the value and says it did. For search, Search field (opens in a new tab) brings its clear button, shortcut and spinner.
Counter
With a textarea, an addon on block-end sits under the text.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/input-group.json- Files
lib/refs.tslib/reduce-motion.tscomponents/kino/input.tsxcomponents/kino/textarea.tsxlib/resize.tslib/swap.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxcomponents/kino/input-group.tsx- Packages
@base-ui/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
InputGroupAddon
InputGroupButton
Accessibility
- The box is a
group, and a press anywhere on it outside a button puts the caret in the control. - An icon-only button needs an
aria-label. - A status shown only by an icon, such as a spinner or a tick, needs text for screen readers beside it.