Staaarter

Day Timeline Rows

A feature section that walks through one working day as hairline rows stamped with the time of day, with a live approval asset dropped inline on the entry that needs showing rather than telling.

By Staaarter Team
Feature
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/day-timeline-rows.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature6.tsx instead.

Usage

The file also exports feature6Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Feature6, feature6Demo } from "@/components/blocks/feature/feature6";

export default function Page() {
  return <Feature6 {...feature6Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall label above the heading.
headingReactNodenoneSection heading.
descriptionstringnoneSupporting copy under the heading.
entriesDayEntry[]noneTime-stamped rows of the day, rendered in array order.
classNamestringnoneExtra classes for the outer section element.

Types

type DayEntry = {
  time: string;
  title: string;
  description: string;
  /** Only the entry worth showing rather than telling should set this. */
  showApproval?: boolean;
};

Behavior notes

  • Fully static and server-rendered: the time column is a plain monospace label, not a real clock or live timestamp.
  • Setting showApproval on an entry renders a small decorative "Approved" card next to that entry's text instead of just describing the approval in words; it does not represent a real approval action or backend state.
  • Rows are separated by hairlines (divide-y/border-t) and stack the time above the content on mobile, moving to a fixed time column at the sm breakpoint.