InputGroup

Wraps an input with leading and trailing adornments.

InputGroup rendered by Tarve InputGroup rendered by Tarve
Native render. The live version loads when this comes into view.

Import

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

Usage

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

<InputGroup style={{ width: 320 }} 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 →

childrenclassclassNamehighlightidkeymotionFromonHighlightonPasteonPointerLeaveonPointerMoveonSizeonTransitionEndrovingGroupstyle