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
@marktiderman/genesis-ui/patternsimport { WhatsNewSheet } from "@marktiderman/genesis-ui/patterns";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.
| Prop | Type | Default | Description |
|---|---|---|---|
| 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. |
| description | string | — | A line under the title, for screen readers and sighted people alike. |
| doneLabel | string | Got it | |
| learnMoreLabel | string | Learn more | |
| onOpenNote | ((note: N) => void) | — | Opens a note's `url`. Without it, notes show no Learn more. |
| testID | string | whats-new | |
| title | string | What's new |