Renders schema.org objects from the seo utils as an escaped application/ld+json script block. See the SEO guide for the builders and per-framework wiring.
Design intent
JsonLd renders schema.org objects built by the seo utils (organizationJsonLd, articleJsonLd, faqJsonLd, ...) as a <script type="application/ld+json"> block. It escapes `<` inside string values so untrusted data can never close the script tag early — the failure mode plain JSON.stringify leaves open.
npx @slipstream-ui/cli@latest add json-ld{"@context":"https://schema.org","@type":"FAQPage","@id":"https://docs.acme.dev/#faq","isPartOf":{"@id":"https://docs.acme.dev/#website"},"inLanguage":"en","mainEntity":[{"@type":"Question","name":"Is Slipstream UI free?","acceptedAnswer":{"@type":"Answer","text":"Yes — MIT licensed."}},{"@type":"Question","name":"Does it work with Tailwind v4?","acceptedAnswer":{"@type":"Answer","text":"The theme contract supports both v3.4 and v4."}}]}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| data | JsonLdObject | JsonLdObject[] | — | Schema.org object or array, typically built by the utils/seo builders. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't hand-write JSON-LD strings
Use the utils/seo builders so ids, url resolution and required fields stay consistent, and let JsonLd handle escaping.
tsx// Avoid<script type="application/ld+json">{JSON.stringify(data)}</script>// Prefer<JsonLd data={articleJsonLd({...})} />Don't mark up invisible content
Structured data must describe content visible on the page. FAQ/Article markup for hidden or unrelated content can earn a manual action.
tsx// Avoid<JsonLd data={faqJsonLd({ items: hiddenFaqs })} />// Prefer: only schema for Q&A actually rendered on the page
Accessibility
- Renders a non-executable script element; it adds no accessibility tree nodes.
- Structured data must describe content visible on the page — never mark up hidden content.
- Escapes `<` inside string values so data cannot close the script tag early.
Content guidelines
Schema fields
- Keep headline/name concise and factual
- Descriptions should match visible page copy
- Dates must be ISO 8601
Good examples
- headline: 'Migrating from shadcn/ui'
- dateModified: '2026-01-15'
Bad examples
- headline: 'BEST EVER GUIDE!!!'
- dateModified: 'last week'
Composition
Compose with Prose: Article/TechArticle JSON-LD should describe Prose-rendered article content
<><JsonLd data={articleJsonLd({...})} /><Prose>...</Prose></>
Related components: Prose, Breadcrumb
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.