Glowup
FEEDBACK · 60 / 89
Banner
Banner — a Material You feedback component for React Native and web.
󱀫
packages/ui/src/components/Banner.tsx
Live demo
Properties
4 controls
Visible
Message
Type
Default
󰍝
Dismissable
Usage
Banner.tsx
<Banner visible message="Your subscription is about to expire." />
Variants
The states and shapes this component is meant to be used in.
Types
With actions
Dismissable
Custom icon
Above content
Component health
API reference
Generated from the library's TypeScript, so it cannot drift from the implementation.
Props
7 on BannerProps
message
required
string
visible
required
boolean
actions
BannerAction[]
Up to two actions, rendered right-aligned below the message.
dismissable
boolean
Show a close (X) button; requires onDismiss.
icon
MaterialCommunityIconsGlyphs
onDismiss
() => void
type
BannerType
default: "default"