A shadcn-style input group component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/input-group

Usage

import * as InputGroup from "@/components/ui/input-group"

Read exported parts in src/components/ui/input-group.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

Disabled

Start Text

i.cal.com/

End Text

@example.com

Start + End Text

https://
.com

End Icon

Icon Button

Button

Badge

Badge

Keyboard Shortcut

⌘K

Tooltip

Inner Label

Loading

Small Size

Large Size

Textarea

78% used

API reference

This component is an ark-cn composition. All props and DOM behavior are defined by Ark unless you see an ark-cn-only row below.

InputGroupAddon

PropTypeDescription
align?"inline-start" | "inline-end" | "block-start" | "block-end"Placement of the addon region.

InputGroupInput

PropTypeDescription
size?"sm" | "default" | "lg" | numberField height token inside the group.

InputGroupTextarea

PropTypeDescription
size?"sm" | "default" | "lg"Min-height/padding for grouped textarea.