# Schedule, time rows

- **[Sections](/blocks/)**
- **[Schedule](/blocks/schedule/)**
- **Schedule, time rows**

A heading over ruled rows, each with its time in small mono type at the start, the name of the session and an outlined button at the end.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/schedule-time-rows
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/schedule-time-rows';
  ```

Also called

- schedule/time-rows

- **About**: A heading over ruled rows, each with its time in small mono type at the start, the name of the session and an outlined button at the end. On a phone the time sits over the name and the button under it.
- **Category**: What happens when: sessions, classes or events set out as a list or along a line. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: Pick it for a plain list of sessions where each row has a time, a name and its own button, such as classes or tours. For dated cards with a picture choose `schedule-header-row-list`; for a timeline choose `schedule-spine-alternating`.
- **Writing for it**: - Title up to 100 characters; the label is optional.
- One to twelve rows, each a time up to 40 characters, a name up to 80 and an optional button label up to 40.
- **Watch out for**: Give every row the same time format so the first column lines up. The buttons all lead to booking, so give each row its own link rather than one page for all.

## Pairs well with

- **[FAQ, list](/blocks/faq/accordion)**
- **[Call to action, band](/blocks/cta/banner)**
- **[Contact, split with details](/blocks/contact/split-details)**

## 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 ScheduleTimeRows from '@/components/klarhimmel/blocks/schedule-time-rows';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ScheduleTimeRows props={{
          "eyebrow": "",
          "title": "Say what the schedule is for",
          "rows": [
            {
              "time": "Start to end",
              "title": "Name the first session",
              "action": {
                "label": "Main action",
                "href": "#book"
              }
            },
            {
              "time": "Start to end",
              "title": "Name the second session",
              "action": {
                "label": "Main action",
                "href": "#book"
              }
            },
            {
              "time": "Start to end",
              "title": "Name the third session",
              "action": {
                "label": "Main action",
                "href": "#book"
              }
            }
          ]
        }} />
      </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 100 characters.
- **rows**: List of 1 to 12. Each item: time, title, action (optional).
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/schedule/spine-alternating)
