# Unique ID Gives every block a stable, generated identifier. ## Installation ```bash npx shadcn@latest add litingyes/blocove/rich-text-editor-unique-id ``` > Typography requires [shadcn/typeset](https://ui.shadcn.com/docs/typeset). Copy `typeset.css` next to your main stylesheet, import it after Tailwind and add the `.typeset-docs` preset. The id is stored on the node `id` attribute and serialized as `data-id`, so it survives an HTML round trip without clashing with the DOM ids of the page. ## API Reference ### EditorUniqueId Registers the unique id extension. Every block receives a stable `data-id` attribute the first time the document is parsed. | Prop | Type | Default | | --- | --- | --- | | `types` | `string[] | 'all'` | `'all'` | | `attributeName` | `string` | `'id'` | ## Registry dependencies - `litingyes/blocove/rich-text-editor` - `litingyes/blocove/rich-text-editor-extension` Namespace: `npx shadcn@latest add @blocove/rich-text-editor-unique-id`