XiodUI
HomeDocs
OverviewComponentsStyling & CustomizationChangelog

Components

  • Accordion
  • Agent Steps
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Autocomplete
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Button Split
  • Calendar
  • Card
  • Carousel
  • Checkbox
  • Circular Progress
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy To Clipboard
  • Corner Badge
  • Dashboard Grid
  • Date Picker
  • Dialog
  • Dot Matrix
  • Draggable
    Updated
  • Drawer
  • Empty
  • Field
  • Fieldset
  • File Upload
    Updated
  • Form
  • Frame
  • Gauge
  • Grid
  • Group
  • Input
  • Input Group
  • Input OTP
  • Input Payment
  • Input Phone
    Updated
  • Input Sensitive
  • Kbd
  • Kinetic Click
  • Label
  • List Box
    Updated
  • Loader
  • Marker
  • Menu
  • Menubar
  • Message
  • Meter
  • Morphic Toast
  • Navigation Menu
  • Number Field
  • Option Picker
  • Orb
  • Pagination
  • Popover
  • Preview Card
    Updated
  • Progress
  • Radio
  • Resizable
  • Ruler Picker
  • Scroll Area
  • Scroll Bar
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sortable
  • Switch
  • Table
  • Tabs
  • Text
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Toolbar
  • Tooltip
  • Waveform
  • Wheel Picker

Loading...

Preview Skeleton

Installation Skeleton

Usage Skeleton

API Reference Skeleton

Sponsors

Support the development of XiodUI and help us build the best component library on Earth.

+++
Sponsor on GitHub

Input Group

Previous: InputNext: Input OTP

An input with icons, text or buttons attached inside its border.

Preview

Loading Preview...

Installation

bun add xiod-ui

Usage

Imports

1import {2  InputGroup,3  InputGroupAddon,4  InputGroupInput,5  InputGroupText,6  InputGroupTextarea7} from "xiod-ui/input-group";

Anatomy

1<InputGroup>2  <InputGroupAddon>3    <InputGroupText />4  </InputGroupAddon>5  <InputGroupInput />6</InputGroup>

API Reference

Detailed documentation of properties and options.

InputGroup

Accepts render, plus every native <div> attribute.

InputGroupAddon

Accepts render, plus every native <div> attribute.

PropTypeDefaultDescription
align
"inline-end"|"inline-start"|
InputInput OTP
"block-end"
|"block-start"
inline-start

Where the addon sits: before or after the text on the same line (inline-*), or on its own row above or below it (block-*).

InputGroupInput

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
defaultValue
string | number | readonly string[]
–

The default value of the input. Use when uncontrolled.

nativeInput
boolean
–

Whether to render a plain <input> instead of Base UI's Input. A plain input doesn't register with a surrounding Field.

onValueChange
((value: string, eventDetails: Input.ChangeEventDetails) => void)
–

Callback fired when the value changes. Use when controlled.

size
number|"lg"|"sm"|"default"
–

The size of the component.

unstyled
boolean
–

Whether to drop the border, background and focus ring, leaving only the text field. Use inside your own styled container.

value
string | number | readonly string[]
–

The value of the input. Use when controlled.

InputGroupText

Accepts render, plus every native <span> attribute.

InputGroupTextarea

Accepts every native <textarea> attribute.

PropTypeDefaultDescription
size
number|"lg"|"sm"|"default"
–

The size of the component.

unstyled
boolean
–

Whether to drop the border, background and focus ring, leaving only the text field. Use inside your own styled container.