shadcn.io is not affiliated with official shadcn/ui
Full-Bleed Launch Banner Block for React
A launch-week callout for a product analytics tool: a tinted band with a header and a waitlist button, then five day cells, one launch each, today's lit.
Installation
Overview
A full-bleed launch callout for React with Base UI. A faint tint of the theme's muted colour runs across the whole width of the page. Between the page rails a header names the week, "Launch week", with one sentence under it (five days, five launches for Larchfold v2) and an outline Shine Button, "Join the waitlist", at the end. Below it a band of five cells sits on shared hairlines, one launch a day: a day chip, the launch's name and a status line. Day 1 is live: its cell is lit on the card colour and carries a solid dot and "Live now"; days 2 to 5 carry a quiet dot and "Soon". There are no dates, so nothing goes stale as the week passes. From the medium breakpoint the cells share the width in five columns; on a phone they scroll sideways in a labelled strip and snap one by one. The band ends on the next block's top rule. It follows the theme, with no black panel. Built from Guides, Badge, Status and Shine Button. For launch weeks, release trains and any run of announcements that deserves its own calendar.
FAQ
How do I change the launches, or move to the next day?
Edit DAYS at the top of the file: each entry has a title and a live flag. Set live to true for the launches that are out; the cell is lit and its status line reads "Live now". When a second day goes live, flip its flag and the earlier one can stay lit or not as you prefer. The day chip numbers itself from the entry's position, "Day 1" to "Day 5". The lit cell also carries aria-current, so a screen reader hears which one is live.
Why are there no dates?
A date in a banner goes stale the day after the launch week ends, and a banner with a wrong date is worse than none. The cells say "Live now" and "Soon", which stay true as you update the flags. If your week has fixed days, put the weekday names in the titles yourself.
How does it fit on a phone?
Below the medium breakpoint the five cells are a horizontal scroller, each cell 85% of the width so the next one peeks in, snapping one at a time. The scroller is a list with a label and a tab stop, so a keyboard user can focus it and scroll with the arrow keys, and it shows a focus ring inside its edge. The header stacks: the text, then the button.
Related
- Pro
Top Bar Banner
Top barsA slim announcement strip for a writing app's release: one centred line with the version, the news and an underlined link, and a ghost button that folds the strip away.
- 02041158Pro
Event Countdown Banner
CountdownsAn event countdown for a developer conference: a calendar tile with the name and a sentence saying when it starts, four cells of days, hours, minutes and seconds in a corner-marked frame, and a Shine Button to reserve a seat.
- 010203Pro
Numbered Announcements Banner
Numbered listsA weekly digest band for a product-updates tool: a quiet title and count, then three numbered announcements on hairlines, each row one link with a trailing arrow.
- v3.9v4.0Pro
Full-Bleed Version Banner
Top barsAn upgrade band for a UI kit: a tinted strip that shows the version you run next to the latest, v3.9.2 to v4.0, a short note and a link to the changelog.
- 021434Pro
Flash Sale Countdown Banner
CountdownsA flash-sale countdown for a lighting shop: the product with its struck regular price and sale price, a clock of hours, minutes and seconds in three cells, a Shine Button to claim the price, and a thin meter of how much stock is claimed.
- v4.2123Pro
Numbered Changelog Banner
Numbered listsA release banner for a release-management tool: the latest version set large at the start, and the three before it as a numbered list at the end, split by a solid divider.