Banner
Full-width persistent message with tone, optional action, and optional dismiss.
beta
API
import Banner from '@tcpsystems/ui/foundation/Banner';| Prop | Type | Default |
|---|---|---|
tone? | 'neutral' | 'accent' | 'ok' | 'warn' | 'danger' | 'info' | 'info' |
title | string | none |
dismissLabel? | string | none |
dismissKey? | string | none |
children? | native | none |
| Snippet |
|---|
action |
| Hook | Kind |
|---|---|
.tcp-banner | Root class |
data-dismiss-key | Data attribute |
data-tone | Data attribute |