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

Installation

npx shadcn@latest add @ark-cn/input

Usage

import * as Input from "@/components/ui/input"

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

Examples

API reference

This component mirrors the upstream Ark UI primitive. All props and DOM behavior are defined by Ark unless you see an ark-cn-only row below.

Input

PropTypeDescription
size?"sm" | "default" | "lg" | numberVisual height tier; number forwards to native size attribute.
unstyled?booleanSkips the bordered control chrome.
nativeInput?booleanUses a plain <input> instead of ark.input.

See the ARK UI documentation for the full API.