sigilUI

Input Group

Combine an input with labels, icons, or adjacent actions.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { InputGroup, InputGroupInput, InputGroupTextarea, InputGroupAddon, InputGroupButton, InputGroupText } from "@sigil-ui/components";

Usage

<InputGroup className="w-full max-w-sm">
    <InputGroupAddon>$</InputGroupAddon>
    <InputGroupInput placeholder="0.00" />
    <InputGroupAddon>USD</InputGroupAddon>
  </InputGroup>

Sub-components

This component includes the following parts:

  • <InputGroupInput>
  • <InputGroupTextarea>
  • <InputGroupAddon>
  • <InputGroupButton>
  • <InputGroupText>

Token integration

CSS VariablePurpose
--s-radius-inputRadius input
--s-radius-mdRadius md
--s-borderBorder
--s-border-styleBorder style
--s-backgroundBackground
--s-primaryPrimary
--s-duration-fastDuration fast
--s-textText
--s-text-mutedText muted
--s-surfaceSurface
--s-surface-elevatedSurface elevated