The posts list of a CMS. Search, filter chips with counts, and bulk Publish, Schedule and Archive that go through one async callback with a pending state and an error line. Controlled: you pass the posts and wire onBulk to your API.
On this page
- Posts list
- CMS
- Editorial calendar
- Review queue
Examples
Nothing yet and loading
On a phone
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- posts
Post[]- The posts. A post has id, title, slug, status, author { name, avatar? }, tags, updatedAt and, when scheduled, scheduledAt (epoch ms).
- onBulk
(action, ids, { at? }) => Promise|void- Publish, schedule or archive. Return a promise: the button is pending until it settles, and a rejection shows its message under the table. Only posts the action applies to are sent.
- onOpen
(post) => void- A row was clicked or opened with Enter.
- onCreate
() => void- Shows New post in the toolbar and in the empty state.
- loading
boolean- Default
false - Shows placeholder rows.
- now
number- Fixes the clock the ages count from, for tests and screenshots.
- empty
ReactNode- Replaces the state of a table with no posts.
| Prop | Type | Default | Description |
|---|---|---|---|
| posts | Post[] | - | The posts. A post has id, title, slug, status, author { name, avatar? }, tags, updatedAt and, when scheduled, scheduledAt (epoch ms). |
| onBulk | (action, ids, { at? }) => Promise | void | - | Publish, schedule or archive. Return a promise: the button is pending until it settles, and a rejection shows its message under the table. Only posts the action applies to are sent. |
| onOpen | (post) => void | - | A row was clicked or opened with Enter. |
| onCreate | () => void | - | Shows New post in the toolbar and in the empty state. |
| loading | boolean | false | Shows placeholder rows. |
| now | number | - | Fixes the clock the ages count from, for tests and screenshots. |
| empty | ReactNode | - | Replaces the state of a table with no posts. |
Accessibility
- It is a real table with sortable headers and a checkbox column; Shift-click selects a range.
- Status is a word in the badge, never only a colour.
- The result of a bulk action is in a polite live region ("Published 3 posts, skipped 1"); an error is an alert.
What it handles
- 01Lists posts with their path, status (Draft, In review, Scheduled, Published, Archived), author, tags and last edit, sorted by the newest edit.
- 02Searches and filters through chips with counts: status, tag and author, all from the Data table.
- 03Offers Publish, Schedule and Archive on the selected posts. Posts a bulk action does not apply to (already live, archived) are skipped and counted, never silently changed.
- 04Runs each bulk action through one async callback. The button shows a pending state, the selection stays if it fails, and the error is written under the table.
- 05Fits its width without clipping: below 900px it drops Tags, below 700px Author, and on a phone it keeps only the title and status, with the author and the age as one muted line under the title and a short scheduled date. Draws the empty and loading states.
States
- First render
- Nothing. The rows paint as they are
- none
- Select rows
- The bulk bar rises in with the count
- 180ms, ease out
- Bulk action runs
- The pressed button shows a spinner, the others stop taking clicks
- none
- It succeeds
- Statuses change on screen at once, the bar closes and one line says what happened
- 120ms, ease out
- It fails
- Rows stay as they were, the selection stays, an error line appears
- none
- Reduced motion
- The bar appears and goes at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The rows paint as they are | none |
| Select rows | The bulk bar rises in with the count | 180ms, ease out |
| Bulk action runs | The pressed button shows a spinner, the others stop taking clicks | none |
| It succeeds | Statuses change on screen at once, the bar closes and one line says what happened | 120ms, ease out |
| It fails | Rows stay as they were, the selection stays, an error line appears | none |
| Reduced motion | The bar appears and goes at once | 0ms |
Works with
When to use
When to use
- The posts list of a CMS: status, author, tags and last edit, with filters and bulk publish, schedule and archive.
- Any list of records that move through states and are acted on in bulk.
When not to use
- A plain data grid with no workflow: use Data Table.
- Writing one post: 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 Content Table to my app and wire it to my own data.
- I need the posts list of a CMS: status, author, tags and last edit, with filters and bulk publish, schedule and archive. Set that up with the Knowns UI Content Table.
- Which Content Table props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "content-table" }) and search_docs({ query: "content table" }). Pro props, full examples and source come back once your license key is in the MCP config.