Use the align prop on InputGroupAddon to position the addon relative to the input.
For proper focus management, InputGroupAddon should always be placed after
InputGroupInput or InputGroupTextarea in the DOM. Use the align prop to
visually position the addon.
InputGroupSelect is a native select that sits inside the group, with the chevron drawn for you. Use NativeSelectOption for its options so they stay readable in dark mode. An addon beside an InputGroupTextarea sits at the top, in line with the first line of text. Clicking an addon focuses the control next to it, whether that is an input, a select or a textarea.
Copy
import { ChatCircleTextIcon, ListChecksIcon } from "@phosphor-icons/react"import {
Replacement for <Input /> when building input groups. This component has the input group styles pre-applied and uses the unified data-slot="input-group-control" for focus state handling.
Prop
Type
Default
className
string
All other props are passed through to the underlying <Input /> component.
Replacement for <Textarea /> when building input groups. This component has the textarea group styles pre-applied and uses the unified data-slot="input-group-control" for focus state handling.
Prop
Type
Default
className
string
All other props are passed through to the underlying <Textarea /> component.