Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Office Bands Team Block for React

Three offices of a hotel revenue-software company as bands that run from rail to rail: the city and its address, the local time there, the headcount, and three of the people you will meet in cells that share their hairlines.

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 "where we work" section for React with Base UI, for Bellcombe, hotel revenue software. A start-aligned header sits over three bands (Reykjavik, Singapore and Bogotá) that run from rail to rail and end the block. Each band opens with the city, its country and its postal address, then the two things a visitor or a colleague wants first: the time there now and how many people work in the office. Under it, three of the people you will meet, each an initials avatar with a name and a specific role, in cells that share their hairlines. Every band's top rule and its + marks come from Guides. On a phone the bands stack and the people sit one per line. It's built from Avatar and Guides, with your theme's tokens for every colour. The offices, the streets and the people are invented; the cities are real.

FAQ

How do I add or change an office?

Edit OFFICES at the top of the file. An office has an id, a city, a country, the address as one string per line, a headcount, an offset (minutes east of UTC) with its offsetLabel, and the three people to show. The total in the header sentence is summed from the headcounts; the sentence that names the cities is plain text, so edit it too.

How is the local time worked out?

In the browser, after the page loads, from the office's fixed offset: hours and minutes at that offset, refreshed every half minute. Until then each clock shows --:--, so the server's HTML and the browser's first render are the same and nothing flickers. A fixed offset never follows daylight saving, which is why the three example cities are ones that don't keep it. For a city that changes its clocks, swap the offset for a time-zone name and format it with Intl.DateTimeFormat.

What do a screen reader and a keyboard get?

A list of three offices; each has a heading with the city, an address element, a description list with the local time and the headcount, and a list of the people with their names as headings. The time sits in a time element. There is nothing to operate, so nothing is in the tab order.

How does it fit on a phone?

Each band stacks: the city and address, then the time and the headcount side by side, then the three people one per line with a hairline between them. The three bands come to about two screens.

How are the lines drawn, and how does the block end?

Each band draws its top rule with Guides, with + marks where it meets the rails. The row of people has a plain hairline above it and, from the medium breakpoint, a divider between its cells. The last band draws no bottom rule: the next block's top rule closes it, so no line is doubled.

Are the addresses real?

No. The cities are real; the streets, numbers and postcodes are made up. Replace them with your own before you ship.

  • Pro

    Office Tabs Team

    Hours and places

    The four offices of a surveying app in a split: a vertical tab rail of offices beside a page with the address, the local time, the opening hours, the people who work there and a Plan a visit link.

  • Pro

    Countries Table Team

    Hours and places

    A remote-first CRM's people by country: region tabs over a table with each country's cities, its headcount as a number and a thin bar, and three of the people who live there.

  • Pro

    Time Zone Axis Team

    Hours and places

    Ten people of a remote-first payroll company laid along an axis of UTC offsets, each office with its avatars, a live local time and a shaded band where it is working time, over six cells that list the same zones.

  • Pro

    Floor Plan Team

    Hours and places

    A coworking brand's third floor drawn as a greyscale plan with eight desks you can pick, a legend of the rooms in text, and the person at the chosen desk with their room, their days and what is on their desk.

  • Pro

    A contact section for a coffee roaster with four cafes: city tabs over a panel with address, hours and a street map, and a form addressed to the cafe you picked.

  • Pro

    Hybrid Week Desks Team

    Hours and places

    A coworking company's hybrid week as a table: eight people by Monday to Friday, each cell a desk code like BER-214 or Remote, a who-is-in count under each day and a select to look at one office.