Components

Component Preview

Edit real Typseo metadata controls and watch the SEO components respond.

The preview imports MetadataEditor from @typseo/ui/metadata-editor, SEOScore, SEOChecklist, and SERPPreview from @typseo/ui/seo, and analyzeSeoDocument from @typseo/core. There is no mock score. The example body is fixed to make metadata changes easy to isolate.

Live preview · @typseo/uiClient-side only
100
  • Title Presentpass
  • Title Lengthpass
  • Description Presentpass
  • Description Lengthpass
  • Body Lengthpass
  • H1 Countpass
  • Heading Orderskip
  • Image Altskip
  • Keyword Titlepass
  • Keyword Bodypass
example.com/articleA practical guide to writing clear page titles

Learn how to make page titles and descriptions useful for readers, with a concrete publishing checklist.

Source

The complete running component is at apps/docs/components/seo-live-preview.tsx. This reduced snippet shows the data flow:

'use client';

const [metadata, setMetadata] = useState({
  title: '',
  metaDescription: '',
  focusKeyword: '',
});
const document = { ...metadata, bodyText, headings };
const analysis = analyzeSeoDocument(document);

return (
  <>
    <MetadataEditor value={metadata} onChange={setMetadata} />
    <SEOScore analysis={analysis} />
    <SEOChecklist analysis={analysis} />
    <SERPPreview document={document} url="https://example.com/article" />
  </>
);

Use the code-block copy button to adapt this example. This preview is client-side only; production metadata still comes from persisted server content.

On this page