What a post looks like in search and when it is shared, and a scored checklist with fix suggestions. The suggestions come from an async callback you supply, with loading, error and undo built in.
On this page
- Search preview
- Social card preview
- Publish checklist
- Content QA
Examples
On a phone
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- input
SeoInput- title, description, slug, body (Markdown), and optionally hasCover and coverAlt. Controlled: the panel scores again as it changes.
- onSuggest
(check, input, signal?) => Promise<string>- Returns a fix: the new text for title, description and slug, or a sentence of advice for headings, alt text and links. A rejection shows its message with Try again. Without it there are no suggest buttons.
- onApply
(field, value) => void- A suggestion was accepted: write it to the post. Called again with the old value on Undo. Only title, description and slug have a field.
- siteUrl / siteName
string- Default
"example.com" / "Example" - Shown in the search and social previews.
- image
{ url, alt? }- The social image, usually the post cover.
- seoChecks / seoScore
(input) => SeoCheck[] / (checks) => number- The same checks as plain functions, for a publish guard or a CI step.
| Prop | Type | Default | Description |
|---|---|---|---|
| input | SeoInput | - | title, description, slug, body (Markdown), and optionally hasCover and coverAlt. Controlled: the panel scores again as it changes. |
| onSuggest | (check, input, signal?) => Promise<string> | - | Returns a fix: the new text for title, description and slug, or a sentence of advice for headings, alt text and links. A rejection shows its message with Try again. Without it there are no suggest buttons. |
| onApply | (field, value) => void | - | A suggestion was accepted: write it to the post. Called again with the old value on Undo. Only title, description and slug have a field. |
| siteUrl / siteName | string | "example.com" / "Example" | Shown in the search and social previews. |
| image | { url, alt? } | - | The social image, usually the post cover. |
| seoChecks / seoScore | (input) => SeoCheck[] / (checks) => number | - | The same checks as plain functions, for a publish guard or a CI step. |
Accessibility
- Each check says Passed, To improve or Failing in words next to its icon.
- The score is a progress ring with a text value, and a polite line says it again with the number of failing checks.
- A suggestion that fails is an alert; Apply and Undo are announced.
What it handles
- 01Shows the post as a search result and as a shared link, from its title, description, slug and cover.
- 02Scores the post out of 100 from six checks: title length, description, slug, headings, image alt text and links. A pass counts one, a warning half.
- 03Asks an async callback for a fix to any check that is not a pass, with a loading state, an error with Try again, Apply and Reject, and Undo after Apply.
- 04Hands every applied value back to your code. It never writes to the post itself.
- 05Reads the checks from the Markdown body, so it needs no editor: headings, images with and without alt text, internal and external links.
States
- First render
- Nothing. The score and checks paint as they are
- none
- Ask for a fix
- The suggestion folds open under the check, first as a loading line
- 180ms, ease out
- Apply, Reject, Undo
- The suggestion folds shut
- 120ms, ease out
- Score changes
- The ring moves to the new value
- 280ms, ease in-out
- Reduced motion
- Everything changes at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The score and checks paint as they are | none |
| Ask for a fix | The suggestion folds open under the check, first as a loading line | 180ms, ease out |
| Apply, Reject, Undo | The suggestion folds shut | 120ms, ease out |
| Score changes | The ring moves to the new value | 280ms, ease in-out |
| Reduced motion | Everything changes at once | 0ms |
Works with
When to use
When to use
- Checking a post before it goes out: a search result and social card preview, a scored checklist and suggested fixes.
- A side panel next to an editor.
When not to use
- Writing the post itself: use Post Editor.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI SEO Panel to my app and wire it to my own data.
- I need checking a post before it goes out: a search result and social card preview, a scored checklist and suggested fixes. Set that up with the Knowns UI SEO Panel.
- Which SEO Panel props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "seo-panel" }) and search_docs({ query: "seo panel" }). Pro props, full examples and source come back once your license key is in the MCP config.