Genesis
@beta

WhatsNewSheet

WhatsNewSheet — a release's notes after an update, in a dialog: the twin of genesis-ui-native's NativeWhatsNewSheet, with the same `notes`, `dismiss`, `onOpenNote` and labels. On a phone-width screen it rises as a sheet (`mobileLayout="sheet"`). Closing it in any way (Got it, Escape, the overlay) dismisses the notes, and Learn more dismisses them before opening the note.

packages/ui/src/components/patterns/whats-new-sheet.tsx

Import
Subpath export: @marktiderman/genesis-ui/patterns
import { WhatsNewSheet } from "@marktiderman/genesis-ui/patterns";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

WhatsNewSheet

WhatsNewSheet — a release's notes after an update, in a dialog: the twin of genesis-ui-native's NativeWhatsNewSheet, with the same `notes`, `dismiss`, `onOpenNote` and labels. On a phone-width screen it rises as a sheet (`mobileLayout="sheet"`). Closing it in any way (Got it, Escape, the overlay) dismisses the notes, and Learn more dismisses them before opening the note.

PropTypeDefaultDescription
dismiss*() => void—Mark the notes seen and close (genesis-native's `useWhatsNew().dismiss`, or your own).
notes*readonly N[]—The notes; with none, nothing is shown.
descriptionstring—A line under the title, for screen readers and sighted people alike.
doneLabelstringGot it
learnMoreLabelstringLearn more
onOpenNote((note: N) => void)—Opens a note's `url`. Without it, notes show no Learn more.
testIDstringwhats-new
titlestringWhat's new
Storybook
Storybook hosts the canonical visual reference with controls for every variant.