Zum Inhalt springen
⌘K

ArdoBanner

Als Markdown ansehen
Auf dieser Seite
Diese API-Referenz wird aus den englischen TypeScript-Quellkommentaren erzeugt. Namen, Signaturen und Beispiele entsprechen dem veröffentlichten Paket.

A notice at the top of a page, such as a release or a maintenance window. Use it in MDX for formatted content and links. The banner is static and needs no JavaScript.

import { ArdoBanner } from "ardo/ui"

<ArdoBanner>{children}</ArdoBanner>

Props

NameTypeRequiredDescription
variantArdoBannerVariantNoColor of the banner, matching the callout of the same name. Defaults to "info".
childrenReactNodeYesBanner content, such as a sentence with a link.
classNamestringNoAdditional CSS class.

Props type: ArdoBannerProps

Example

<Banner variant="warning">Scheduled maintenance on Saturday from 08:00 to 10:00 UTC.</Banner>