InputGroup

Wraps an input with leading and trailing adornments.

Import

import { InputGroup } from "@tarve/core";

Usage

InputGroup.tsx
import { Icon, Input, InputGroup, Kbd } from "@tarve/core";

<InputGroup prefix={<Icon name="search" />} suffix={<Kbd>/</Kbd>}>
  <Input placeholder="Search files" />
</InputGroup>

Props

PropTypeDefault
disabled boolean—
prefix Child—
suffix Child—

Common props

Shared by every component. See descriptions →

childrenhighlightidkeymotionFromonHighlightonPasteonTransitionEndrovingGroupstyle