BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Manifest UI/post-detail

Post Detail

manifest-ui/post-detail
FreeBlock

Full post view with cover image, author info, content, tags and related posts section.

Install it

npx shadcn@latest add https://ui.manifest.build/r/post-detail.json

Source

registry/blogging/post-detail.tsxui.manifest.build/r/post-detail.json · first 6 KB
1'use client';
2
3import { Button } from '@/components/ui/button';
4import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
5import { Calendar, Clock, ExternalLink, Maximize2 } from 'lucide-react';
6import { useMemo } from 'react';
7import type { Post } from './types';
8import { demoPostDetailData } from './demo/blogging';
9
10// DOM-based allowlist HTML sanitizer for post content
11const ALLOWED_TAGS = new Set([
12 'p', 'br', 'b', 'i', 'em', 'strong', 'a', 'ul', 'ol', 'li',
13 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'code', 'pre',
14 'span', 'div', 'img', 'figure', 'figcaption', 'hr',
15]);
16const ALLOWED_ATTRS: Record<string, Set<string>> = {
17 a: new Set(['href', 'target', 'rel', 'title']),
18 img: new Set(['src', 'alt', 'width', 'height']),
19 '*': new Set(['class', 'id']),
20};
21const DANGEROUS_URL = /^\s*(javascript|data):/i;
22
23function sanitizeNode(node: Node, doc: Document): void {
24 const children = Array.from(node.childNodes);
25 for (const child of children) {
26 if (child.nodeType === 3 /* TEXT */) continue;
27 if (child.nodeType !== 1 /* ELEMENT */) {
28 child.remove();
29 continue;
30 }
31 const el = child as Element;
32 const tag = el.tagName.toLowerCase();
33 if (!ALLOWED_TAGS.has(tag)) {
34 // Unwrap: keep text content, discard the tag
35 while (el.firstChild) node.insertBefore(el.firstChild, el);
36 el.remove();
37 continue;
38 }
39 // Strip disallowed attributes
40 const tagAllowed = ALLOWED_ATTRS[tag];
41 const globalAllowed = ALLOWED_ATTRS['*'];
42 for (const attr of Array.from(el.attributes)) {
43 const name = attr.name.toLowerCase();
44 if (!tagAllowed?.has(name) && !globalAllowed?.has(name)) {
45 el.removeAttribute(attr.name);
46 }
47 }
48 // Block dangerous URL schemes on href/src
49 for (const urlAttr of ['href', 'src']) {
50 const val = el.getAttribute(urlAttr);
51 if (val && DANGEROUS_URL.test(val)) el.removeAttribute(urlAttr);
52 }
53 sanitizeNode(el, doc);
54 }
55}
56
57function sanitizeHtml(html: string): string {
58 if (typeof document === 'undefined') return html;
59 const doc = new DOMParser().parseFromString(html, 'text/html');
60 sanitizeNode(doc.body, doc);
61 return doc.body.innerHTML;
62}
63
64function TagList({
65 tags,
66 maxVisible = 2,
67 size = 'default',
68}: {
69 tags: string[];
70 maxVisible?: number;
71 size?: 'small' | 'default';
72}) {
73 const visibleTags = tags.slice(0, maxVisible);
74 const remainingTags = tags.slice(maxVisible);
75// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button
  • tooltip
  • https://ui.manifest.build/r/manifest-types.json

Files it writes

  • registry/blogging/post-detail.tsx
  • registry/blogging/post-card.tsx
  • registry/blogging/demo/blogging.ts

Facts

Registry
Manifest UI
Type
registry:block
Access
Free
Files written
3
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ui.manifest.build Raw registry item This item as JSON

More from Manifest UI

All 32 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Amount Inputamount-inputManifest UIBlocksFree1 dep · 2 files
Chat Conversationchat-conversationManifest UIBlocksFree1 dep · 3 files
Contact Formcontact-formManifest UIBlocksFree1 dep · 3 files
Date & Time Pickerdate-time-pickerManifest UIBlocksFree1 dep · 2 files
Event Cardevent-cardManifest UIBlocksFree1 dep · 2 files
Event Confirmationevent-confirmationManifest UIBlocksFree1 dep · 2 files
Event Detailevent-detailManifest UIBlocksFree3 deps · 2 files
Event Listevent-listManifest UIBlocksFree3 deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex