Setting the file. One moment.
Subchapter 1.36
references/context-provider/vertical-contexts/blog/tag-item.mdMarkdown2 KBView on GitHub
@wix/blog/context/tag-itemRead Importing a Context in Code first. Import only the hook, from @wix/blog/context/tag-item.
Supplies one post tag, injected per repeater cell, to its children.
import { TagItemContextProvider } from '@wix/blog/context/tag-item';__0: TagItemContextProviderPropsReactNodeNullable rather than throwing: the hook runs for every element inside the repeater cell, including on the editor stage before the cell is populated.
import { useTagItemContext } from '@wix/blog/context/tag-item';PostTagItem \| null| Property | Type | Description |
|---|---|---|
tagData | PostTagItem | undefined | The current item of the postTags array, injected by the platform per repeater cell (the Post context manifest’s contextImplementor.propKey). Absent on the editor’s unbound template cell — children then render over a null context, matching the Category Item and Post Item providers; this provider has no standalone fetch path. |
children | ReactNode |
| Property | Type | Description |
|---|---|---|
_id | string | The tag’s ID. |
label | string | The tag’s name, as plain text. |
itemTagLabel | RichText | The tag’s name, as rich text: text is the plain text, and html is an HTML paragraph. |
itemTagLink | Link | undefined | Link to the blog page that lists the tag’s posts, with its URL in href. undefined when the site has no such page. |
tagItem | { label: string; slug: string; } | The tag’s name and slug. |