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

Hello World

Installation

npx shadcn@latest add @ark-cn/editable

Usage

import * as Editable from "@/components/ui/editable"

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

Examples

Basic

Hello World

Context Hints

Hello

Controlled

Controlled value

Live: Controlled value

Textarea

Ark UI editable with a textarea.

Invalid

Required field

API reference

This component mirrors the upstream Ark UI primitive.

See the ARK UI documentation for the full API.

Accessibility

See the Ark UI documentation for clarification.