shadcn.io is not affiliated with official shadcn/ui
Culture Behaviors About Block for React
Two equal halves split by a hairline, what a feedback-tool company celebrates and what it discourages, each as rows with the behaviour and what it sounds like in quotes, marked with a plus and a minus, never a colour.
Installation
Overview
A culture-behaviours section for React with Base UI, written for Candorly, a fictional feedback tool. Two equal halves share the page: "We celebrate" at the start and "We discourage" at the end, split by a single hairline on wide screens. Each half is a list of four rows, and each row gives the behaviour and, under it, what it sounds like in the words someone would actually say. The markers are a filled plus for what is celebrated and an outlined minus for what is discouraged, so the two halves differ by shape and by their heading, never by red and green. The rows run from rail to rail between hairlines and end the block; on a phone the halves stack, the celebrated one first, with a rule between them. It's built from Guides with Lucide icons, a CSS entrance and your theme's tokens, with no script. For about pages and handbooks that want culture to be something you can overhear. The behaviours and quotes are example copy.
FAQ
How do I change the behaviours?
The two lists are CELEBRATE and DISCOURAGE at the top of the file. Each row has a title and sounds, the sentence someone would say; the quote marks are added for you. The halves don't have to pair up row for row, but keeping the same number in each (four) keeps the two columns the same height. Write the quote in the voice of the person doing it, so a reader can recognise it in a meeting.
Why a plus and a minus, and not colours?
Red for "discouraged" and green for "celebrated" fail for readers who can't tell the two apart, and they pull your theme's accents into a block that should stay calm. The markers differ in shape (a minus and a plus) and in fill, they are decoration only, and the meaning is carried by the half's heading, which the rows sit under.
How are the lines drawn?
The band's top rule, the rule under each half's heading and the + marks where they meet the rails and the middle come from Guides. The middle divider is a border on the second half from lg; on a phone a rule is drawn between the halves instead. Rows are separated by hairlines, and the last row has no bottom rule, because the next block's top rule is its foot, so the block ends on content.
How do screen readers and keyboards handle it?
The section's heading is an h2, each half has an h3 ("We celebrate", "We discourage") and each behaviour is a list item with an h4. The quoted example is part of the row's text, introduced by "Sounds like". The markers are hidden from assistive technology. The block has no controls and no state, so it renders on the server.
How does it fit on a phone?
Below lg the halves stack at full width, "We celebrate" first, with a hairline rule between them. Each row keeps its marker at the start and wraps its text beside it, and nothing scrolls sideways at 320 pixels. In a right-to-left layout the halves swap sides and the quotes keep their quote marks in place.
Related
- Pro
Culture Rituals About
Culture and valuesA 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
Before After Toggle Feedback Culture
Culture and valuesA feedback culture section for a peer review tool: five habits of a good review comment, each with the vague sentence most people write and the useful rewrite, flipped by a Before / After toggle.
- Pro
Situation Tabs Operating Principles
Principles and processAn operating-principles section for an accounting-automation company: line tabs by situation, and under them the open situation's three rules as hairline rows, each with the question we ask.
- Pro
Principles Rail About
Principles and processA split about section for a release-management tool: a sticky title at the start, and six principles as stations on a hairline rail, each opening to what it means and how it shows up.
- Pro
Values Bento About
Culture and valuesA bento of six values for a community-forum company: three tall cells that each carry a story of what the value looked like in a nested quote, and three one-line cells stacked beside them, in shared hairlines.
- Pro
Settings Panel Work Style
Culture and valuesA 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.