Forms
Input Group
A text field with a fixed prefix, suffix or both inside one border.
Group: Forms. Exports: InputGroup. shadcn/ui equivalent: Input Group (partial parity).
Usage
import { InputGroup } from "./halaska-kit";
InputGroup props
prefixReactNode:suffixReactNode:valueany: The controlled value.onChange(value) => void: Called with the new value.placeholderstring: Hint shown while empty.labelstring: Visible label.styleCSSProperties: Inline style merged onto the root element.
Accessibility
- Renders a native input. Focus is shown on the border of the whole group.
- A string label becomes the input's aria-label.
- Prefix and suffix are plain text beside the input. They are not part of its accessible name.
Known gaps
- Addons hold text or a node only: no built-in button addon.
- No textarea version, and no addons above or below the field.
- No disabled or error state.
- No input type prop, and one size.
Halaska UI · Components · Patterns · Screens · Install