Skip to content
Klarhimmel UI

Schedule, time rows

Schedule, time rows previewSchedule, time rows preview

Install

npx shadcn add @klarhimmel/schedule-time-rows
DetailsAbout, usage, props and more

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

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.

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.

PropTypeDefaultDescription
eyebrowstring''Text, up to 60 characters.
titlestring'Say what the schedule is for'Text, up to 100 characters.
rows{ time, title, action }[]3 itemsList of 1 to 12. Each item: time, title, action (optional).
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.