package.docs.components.Banner.examples.Banner.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of patternfly Show documentation
Show all versions of patternfly Show documentation
Assets, source, tooling, and content for PatternFly 4
The newest version!
---
id: 'Banner'
section: components
cssPrefix: pf-v6-c-banner
---## Examples
### Basic
Banners can be styled with one of 9 different nonstatus colors. A nonstatus banner should only be used when the banner color does not represent status or severity.
```html
```
### Banner with links
```html
```
### Status
When a banner is used to convey status, it is advised to add an icon that also conveys status visually, and to provide screen reader text using `.pf-v6-screen-reader` or an equivalent.
```html
```
## Documentation
### Usage
| Class | Applied to | Outcome |
| -- | -- | -- |
| `.pf-v6-c-banner` | `` | Initiates a banner. **Required** |
| `.pf-m-red` | `.pf-v6-c-banner` | Modifies banner for red styling. |
| `.pf-m-orangered` | `.pf-v6-c-banner` | Modifies banner for orangered styling. |
| `.pf-m-orange` | `.pf-v6-c-banner` | Modifies banner for orange styling. |
| `.pf-m-yellow` | `.pf-v6-c-banner` | Modifies banner for yellow styling. |
| `.pf-m-green` | `.pf-v6-c-banner` | Modifies banner for green styling. |
| `.pf-m-teal` | `.pf-v6-c-banner` | Modifies banner for teal styling. |
| `.pf-m-blue` | `.pf-v6-c-banner` | Modifies banner for blue styling. |
| `.pf-m-purple` | `.pf-v6-c-banner` | Modifies banner for purple styling. |
| `.pf-m-success` | `.pf-v6-c-banner` | Modifies banner for success status styling. |
| `.pf-m-warning` | `.pf-v6-c-banner` | Modifies banner for warning status styling. |
| `.pf-m-danger` | `.pf-v6-c-banner` | Modifies banner for danger status styling. |
| `.pf-m-info` | `.pf-v6-c-banner` | Modifies banner for info status styling. |
| `.pf-m-custom` | `.pf-v6-c-banner` | Modifies banner for custom status styling. |
| `.pf-m-sticky` | `.pf-v6-c-banner` | Modifies banner to be sticky to the top of its container. |
© 2015 - 2025 Weber Informatics LLC | Privacy Policy