Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

Banner

Banner renders a compact announcement strip.

CoreFeedback & States@gaudi/design-system/core/BannerView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import Banner from '@gaudi/design-system/core/Banner';

Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/alert-dismissible.json.

Usage

import { Banner } from '@gaudi/design-system';
<Banner title='Now published' href='/blog'> New essays and project notes are available.</Banner>

Playground

Banner props
Props
default md
default neutral
default soft
Banner.jsx
import Banner from '@gaudi/design-system/core/Banner';
<Banner title='New release'> Gaudi 2 ships charts and chat parts.</Banner>

Examples

Alert: Dismissible notices

Storybook

Alert: Message notification

Storybook

Alert: Actions and rich content

Storybook

Alert: Service status summary

Storybook

Alert: Variants

Storybook

API

9 props

Accessibility

Static banners use status semantics. Linked banners derive their accessible name from the rendered title and body, including rich content; ariaLabel provides an explicit override.