Tag manager
Marketing tags with a color dot that fans out into swatches, double-click inline rename with a live slug, usage bars, add with slug preview and delete with an Undo pill.
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
import { TagManager } from '@/components/component-kit/items/block-tag-manager';
export function Example() { return <TagManager onChange={(tags) => console.log(tags)} />;}Props
| Prop | Type | Default | Description |
|---|---|---|---|
tags | MarketingTag[] | 5 demo tags | Tags with id, name, slug, tone (primary or chart-1…5) and post count. |
onChange | (tags: MarketingTag[]) => void | undefined | Called with the full list after every add, rename, recolor, delete or undo. |
undoSeconds | number | 5 | Seconds the Undo pill stays after a delete. |
compact | boolean | false | Three tags without the add form or usage bars. |
autoPlay | boolean | false | Cycle the first tag's color on a loop. |