CMS postsPro
Posts by status and an editor with tags, word count, preview and publish.
What's inside
- Status filters
- Title, excerpt, tags, body
- Word count and read time
- Preview and publish
When to use
- Blog and content admin.
When not to use
- Rich text editing: add a real editor for the body.
Installation
Usage
Import it from @/components/blocks/cms-posts after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { CmsPosts } from "@/components/blocks/cms-posts";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<CmsPosts />
</main>
);
}API reference
CmsPosts
CMS posts by status and an editor with title, excerpt, tags, body, live word count, preview and publish. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through list and editor |
| ←or→ | Switch status tabs |
| Enteror, | Add a tag |
Accessibility
- Every field is labelled; tags have labelled remove buttons.
Motion
- Posts animate between status lists.
Responsive behavior
- The editor moves under the list below 1024px.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Read time is word count ÷ 230, rounded, at least one minute.
This page as Markdown, for assistants and coding agents:
/blocks/cms-posts/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt