Patterns · Data
WelcomeBanner
Since v10.3.0
A greeting at the top of a home or dashboard page: what is new, or the next step for a new account.
import { WelcomeBanner } from '@nexub/patterns';Examples
Default
With art and dismiss
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| titlerequired | React.ReactNode | — | The greeting, e.g. "Welcome back, Mei". |
| description | React.ReactNode | — | One or two lines under the title. |
| actions | React.ReactNode | — | One or two buttons. |
| media | React.ReactNode | — | Decorative art on the trailing side. Hidden on phones. |
| onDismiss | (() => void) | — | Shows a close button. Keep the dismissed state in your app. |
| level | 2 | 3 | 2 | Heading level of the title. |
On iOS & Android
Web only
WelcomeBanner has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.