Editable Heading

Inline editable title that looks like a large heading but is a text input. Use it for document, page or project names; works controlled or uncontrolled.

src/registry/ui/editable-heading.tsx/r/editable-heading.json

Installation#

bash
npx shadcn@latest add @minidev/editable-heading

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/editable-heading.json

Usage#

tsx
import { EditableHeading } from "@/components/ui/editable-heading"

export function Example() {
  return (
    <EditableHeading defaultValue="Untitled doc" />
  )
}

API reference#

EditableHeading props
PropTypeDefault
valuestring-
defaultValuestring""
onChange(value: string) => void-
classNamestring-
placeholderstring"Untitled"
aria-labelstring-

Examples#

All form components