Skip to contentKino
Skip to Content

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.json
Share on

Examples

Icon

An addon at the start holds an icon; a press on it puts the caret in the input.

kinoui.com/

Prefix

Text in InputGroupText reads as the start of the value; an address reads left to right in every language.

0/200

Counter

With a textarea, an addon on block-end sits under the text.

Installation

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

New to Kino? Installation covers what your project needs first and the @kino namespace.

API reference

InputGroupAddon

PropTypeDefaultDescription
align'inline-start''inline-end''block-end''inline-start'Where it sits: before the control, after it, or under a textarea.

InputGroupButton

PropTypeDefaultDescription
variant'ghost''outline''secondary''default''ghost'How it looks.
size'xs''icon-xs''sm''icon-sm''xs'Its size; the icon sizes are square.

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.