Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Double Helix Company DNA Block for React

A company-DNA section for a survey tool: a hand-drawn double helix with five rungs in a framed figure, and a list of five traits that lights a rung and shows what the trait means and how it is hired 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 company-DNA section for React with Base UI. A split divider runs from the page's top rule to the foot of the block. At the start, a figure: a double helix drawn in SVG, with five rungs, one per trait, in a frame with + marks on its corners. At the end, a title and a list of the five traits as radio choices, then the chosen trait's title, what it means and how the company hires for it. Choosing a trait lights its rung in the helix. Every trait's text is stacked unseen under the open one, so the block keeps its height. On a phone the helix sits between the title and the list. It's built from Guides, Radio Group and Field, with CSS transitions for the entrance and the rung, and your theme's tokens for every colour. For an about page, a hiring page or a handbook that wants to say who a company hires, not only what it believes. The company and its traits are invented for the example.

FAQ

How do I change the traits?

Edit TRAITS at the top of the file: each has an id, a label, a one-line tagline, what it meanings and how you hire for it. Add a trait and the list grows by one row; the helix's rungs are computed from the number of traits, so keep it near five for a drawing that reads, and change PERIOD if you want more turns.

How is the helix drawn?

Two strands are drawn as cosine waves in SVG, with the points computed once at module scope, and the rungs join them: short pale ones for the helix's body and one long rung per trait at each half turn. The drawing is decorative and hidden from assistive technology; the list beside it is the real control, and the caption says what the rungs are.

How does the choice work with a keyboard and a screen reader?

The traits are a radio group with one tab stop: the arrow keys move between traits and choose as they go, and Tab leaves the group. Selecting a trait changes the text below it, which sits in a polite live region, so the new meaning is announced. The selected radio, the rung and the card's border all show it in foreground tones, not the primary colour.

Why doesn't the page move when I pick a trait?

The five texts differ in length. An unseen, inert copy of each sits in the same grid cell as the open one, so the cell keeps the height of the longest and nothing below it moves.

How does it fit on a phone?

The header comes first so the title is on the first screen, then the helix at about 12 rem tall, then the five traits and the open one's text. The helix keeps its proportions at every width. Nothing scrolls sideways at 320 pixels.

What moves, and what happens with reduced motion?

The header and the list fade up once, the text of a newly chosen trait fades in, and the rung fills over 300 ms. With reduced motion all of it is off: the text swaps and the rung changes at once.

  • Pro

    Principles Rail About

    Principles and process

    A 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

    Do and Don't Design Principles

    Principles and process

    A design-principles section for a design-system manager: four principles in cells, each with its test as a question and the same screen sketched done well and done badly.

  • Pro

    Values Cloud About

    Culture and values

    A cloud of nine values for a writing app, sized by how often each wins when two disagree: pick a pill in a framed tray and a band under it says what the value means and what it costs us.

  • Pro

    Culture Behaviors About

    Culture and values

    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.

  • Pro

    Values Bento About

    Culture and values

    A 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

    A hiring process section for an applicant tracking company's own about page: five stages drawn to scale over fourteen days, five cells saying what to expect at each, and a promise to reply within two days.