# Blog, list

- **[Sections](/blocks/)**
- **[Blog](/blocks/blog/)**
- **Blog, list**

Post rows with date, title, excerpt and category, plus a link to the full archive.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/blog-list
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/blog-list';
  ```

Also called

- blog/list

- **Category**: Post cards, lists and the article page. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: Archive-style rows with date, title, excerpt and category, ending in a link to every post. Use it when readers scan by date; `blog-cards` suits pictures.
- **Writing for it**: - Write dates in one format across all rows, since the date field (30 characters) is shown as text in a left column.
- Excerpts hold 200 characters and are limited in line length, so one tight sentence reads better than two clipped ones.
- The more link is a secondary button beside the heading, so label it with the destination, such as 'View all posts'.
- **Watch out for**: The block is built in a narrow container that widens only at large sizes, so it is not a full-width layout. It takes one to eight posts, and the whole row is clickable through the title link, so each row needs its own href.

## Pairs well with

- **[Newsletter, inline](/blocks/newsletter/inline)**
- **[Footer, columns](/blocks/footer/link-columns)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import BlogList from '@/components/klarhimmel/blocks/blog-list';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <BlogList props={{
          "eyebrow": "Name the topic",
          "title": "Say what posts cover",
          "description": "Say in one line what the posts are about.",
          "posts": [
            {
              "date": "1 Jan 0000",
              "title": "Say what the post is about, as a title",
              "excerpt": "Say in one or two sentences what the reader gets from the post.",
              "category": "Category",
              "href": "#post-1"
            },
            {
              "date": "1 Jan 0000",
              "title": "Say what the post is about",
              "excerpt": "Say in one or two sentences what the reader gets from the post.",
              "category": "Category",
              "href": "#post-2"
            },
            {
              "date": "1 Jan 0000",
              "title": "Say what the post is about, as a title",
              "excerpt": "Say in one or two sentences what the reader gets from the post.",
              "category": "Category",
              "href": "#post-3"
            },
            {
              "date": "1 Jan 0000",
              "title": "Say what the post is about",
              "excerpt": "Say in one or two sentences what the reader gets from the post.",
              "category": "Category",
              "href": "#post-4"
            }
          ],
          "more": {
            "label": "Second action",
            "href": "#journal"
          }
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **posts**: List of 1 to 8. Each item: date, title, excerpt, category, href.
- **more**: See the type.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/blog/cards)

[Next](/blocks/blog/post)
