Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Release Tabs Press Bulletin Awards Block for React

A centred header over tabs for three press releases of a release distributor, each shown on a framed page with dateline, headline, two paragraphs, a boilerplate and a media contact.

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 press-release bulletin for React with Base UI. A centred header sits over a tab list with one tab per release (Winner, Finalist, Shortlist, newest first), each with its date, and under it the open release on a framed page with + marks on its corners. A page reads as a release does: "For immediate release" and the date, the headline, a dateline and two paragraphs (the second a quotation), a boilerplate about the company and a media contact in an address element. Every page is stacked unseen under the open one, so the block keeps the height of the longest and switching tabs never moves the page. The page's rails and top rule come from the Guides spine. It's built from Tabs, Guides and your theme's tokens. The distributor, the programme and the people are made up for the example: replace the releases with your own.

FAQ

How do I change the releases?

Edit RELEASES at the top of the file. Each release has a tab label, an ISO date, a city for the dateline, a headline, a body paragraph and a quote paragraph. The company paragraph (BOILERPLATE) and the media contact (CONTACT) are shared by every release, as they are in real life. Add a fourth release and the tab list and the page height follow.

Why doesn't the page jump when I switch tabs?

All the pages are rendered, unseen, in one grid cell under the open one, so the cell is as tall as the longest page. The unseen copies are hidden from assistive technology and can't be focused.

How do I use the tabs with a keyboard?

Tab moves focus to the tab list, the arrow keys move between the tabs, and the open page is the next stop. The tab list scrolls sideways inside its own box on a very narrow screen rather than pushing the page.

Are the contact details real?

No. The address uses the reserved .example domain and a made-up phone number, and the people, the distributor and the Jasperbridge programme are invented. The email is a real mailto link so you can see how it behaves; swap in your press contact. The phone number sits in a bdi set to read in a fixed direction so it keeps its order in a right-to-left layout.

How do screen readers read a release?

Each page is an article. The headline is a third-level heading, the company paragraph and the contact are under fourth-level headings, and the contact is an address. The date is a time element, so its machine-readable value is the ISO date.

How does it fit on a phone?

The page's padding steps down, the boilerplate and the contact stack in one column and the headline drops a size. The frame's corner marks keep a margin inside the rails, and nothing scrolls sideways at 320 pixels.

  • Pro

    A start-aligned header with a counted tally over a ruled ledger of press stories for a publishing CMS: each row sets the publication as its own wordmark, the headline as a link, a type badge and the date.

  • Pro

    A split with three counted figures (articles, publications, combined audience) and a ranked list of publications with article counts and derived bars, for a PR-analytics tool; no headlines.

  • Pro

    A feature article about a newsletter platform set as a clipping: headline, byline, an excerpt with a drop cap and a link, beside a drawn masthead and a description list of publication, section, date and reading time.

  • Pro

    A run of show for an awards night: an ordered list of the evening with its times, Lanternhall's two award moments in heavier type, and at the start a drawn stage and a description list of the facts.

  • 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

    A centred header over three editor's picks for a reading app, each with a round stamp drawn in SVG, the publication, the pick's headline and a two-line pull quote in cells with overshoot lines.