Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Copyable Fact Sheet About Block for React

A company fact sheet for a patient-records tool: six facts as a two-column description list in ruled rows, beside a boilerplate paragraph written from the same facts and a Copy button that puts it on the clipboard.

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 fact sheet for React with Base UI, written for Meadowgate Health, a fictional patient-records tool. A split with a divider: at the start a header, a boilerplate paragraph and a Copy button; at the end the facts as a description list in two columns, a term and its answer in rows ruled between (founded, headquarters, team, customers, funding stage, languages). The paragraph is built from the same constants as the list, so the two can't disagree, and the button puts it on the clipboard and shows "Copied" for a moment. On a phone it is one column with the copy first, and a rule from rail to rail between the parts. It's built from Guides and Copy Button, with CSS transitions for the entrance and your theme's tokens for every colour. For about pages, press kits and any page that gets asked for "a short description of the company". The figures are example data.

FAQ

How do I change the facts?

The values are constants at the top of the file (FOUNDED, HEADQUARTERS, TEAM, CLINICS, HOSPITAL_GROUPS, STAGE, LANGUAGES). FACTS builds the rows from them and BOILERPLATE builds the paragraph, so you change a fact once. "Year 1" stands for the founding year: put your own in when you use the block. All the figures are example data: replace the arrays at the top of the file with your own.

What does the button copy?

The boilerplate paragraph exactly as shown, as plain text. It uses the catalog's Copy Button, which changes its icon to a check, announces "Boilerplate copied" politely, and says "Couldn't copy" if the browser refuses the clipboard (a page not served over HTTPS, for instance). The button's width doesn't change when its label does.

How is it read by a screen reader?

The facts are a description list, so each term is followed by its answer. The paragraph sits in a figure whose caption gives its word count, and the button has its own name.

What moves?

The parts fade up once on load with CSS transitions, and the copy icon fades to a check. With reduced motion they simply appear and the check doesn't scale.

How does it fit on a phone?

One column: the header, the paragraph, the button, a rule from rail to rail, then the facts, with each term above its answer.

Why does the block end on the facts?

The split's cells carry their own padding and the block draws only its top rule, with the divider running from that rule down, so it never doubles the next block's top rule.

  • Pro

    An asymmetric bento of company figures for an expense tool: a lead cell with the customer count over a twelve-bar trend, and five smaller cells tagged People, Customers or Product, each footnoted with how it was counted.

  • Pro

    A company's story told through four figures: a title stuck at the start while the reader scrolls, and rows that pair each large number with two sentences on how it happened.

  • Pro

    Mission About

    Statements

    A mission statement for a home-care scheduling company: the mission in large type beside one supporting sentence, three pillars that each carry the figure they are checked by, and a founding line in relative time.

  • Pro

    Pull Quotes and Press Kit About

    Press and recognition

    A press page for a ticketing company: three pull quotes set as headlines with the outlet in serif lettering, and a press kit of three real files that download from the page, a boilerplate with a Copy button and a press contact.

  • Pro

    Sortable Media Mentions About

    Press and recognition

    An index of eight press mentions for a PR tool as two-line rows, each with the masthead, the kind of piece, the day and the headline as a link, and the reach at its end; a Select sorts them by newest or by reach.

  • Pro

    A start-aligned hero with a headline, a Shine Button and three ruled promises, over a full-width band holding the founder's letter as three cells of one quotation and a signature row.