Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Timetable Day in the Life About Block for React

One person's Tuesday as a timetable: three lanes (Focus, Meetings, Support) over the working day, with blocks you pick to read what each one was for.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A day in the life for React with Base UI, written for Dayloom, a fictional support platform, and told through one person, Mara, a support lead, on one ordinary Tuesday. It is drawn as a timetable in a framed figure: an hour axis from 9:00 to 17:00 and three lanes, Focus, Meetings and Support, with the day's six blocks sitting at their times. Each block is a choice in one group of radio buttons, so you can click one or walk the day with the arrow keys; the chosen block is inverted, and its note is written under the timetable with its time and lane. Every note is stacked unseen under the open one, so picking a block never moves the page. On a phone the timetable keeps its width and scrolls sideways inside its frame, with the lane names pinned to the start. The page's rails and top rule come from the Guides spine, so it lines up with its neighbours in a stack. It's built from Guides, with native radio buttons, CSS for the entrance and your theme's tokens for every colour. For about pages and careers pages that want to show how time is spent, not who is on the team. The day and its notes are example data.

FAQ

How do I change the day, the lanes and the blocks?

The lanes are LANES and the blocks are BLOCKS at the top of the file. A block has a title, a lane, its start and end as text, a note, and where it sits: from is the first half-hour column it covers, counted from 9:00, and span is how many half-hours it covers. The timetable has 16 half-hour columns; change HOURS and DAY_END with it if your day is longer.

Why are the blocks radio buttons?

Choosing one block out of several, with exactly one chosen at a time, is what a radio group is. It gives the keyboard for free: Tab enters the group, the arrow keys move through the blocks in reading order, and a screen reader hears each block's name and "1 of 6". The radio itself is visually hidden and the block is its label, so the whole block is the target.

How is this different from a team block?

A team block is the people, with a control to pick among them. This is about time: one person's day laid out against the clock, so the story is how a day is balanced between focus, meetings and support, not who works here. See the team category for people-first blocks.

What happens in a right-to-left layout?

A clock runs the same way for everyone, so the timetable keeps its direction (dir="ltr") and the hours still read left to right; the header, the note and the rest of the page follow the page's direction. Times are isolated so a colon-separated time keeps its order.

How does it fit on a phone?

The timetable stays 44 rem wide and scrolls inside its own frame, with each lane's name pinned at the start so you always know which lane you are in. The note under it stacks below at the page's width. Nothing scrolls the page sideways at 320 pixels.

What moves, and what happens with reduced motion?

The header, the timetable and the note fade up once on load, and a block eases to its inverted colour when you choose it, all with CSS transitions. With reduced motion the transitions are off.

  • Pro

    Four people of a design-handoff company in a picker, and the picked person's day as a vertical timeline of five steps, each a fixed time, a title and its kind in plain words, in a split with a divider.

  • Pro

    A day view for a team planner: three features as a numbered list beside a framed 9 to 5 day with events placed by time and a Now line with a pulsing dot.

  • Pro

    Settings Panel Work Style

    Culture and values

    A working-agreements section drawn as a settings panel: six agreements as rows with a drawn switch, the state in words and a line on why, in a tinted frame beside the title.

  • Pro

    Overlap Hours About

    Team and offices

    An about section for a time-zone scheduler: three offices on a 24-hour axis, with the hours they all share labelled and counted.

  • Pro

    Culture Rituals About

    Culture and values

    A team's rituals sorted by how often they happen: three bands, every week, every quarter and every year, each with three cells that say what the ritual is, who comes and how long it takes.

  • Pro

    Behind the Scenes About

    Culture and values

    One Tuesday at a theatre-software company, by department: an accordion of Support, Infrastructure and Design, each with that day's numbers, tools and an honest note.