ArdoBanner
En esta página
Esta referencia de la API se genera a partir de los comentarios de TypeScript en inglés. Los nombres, las firmas y los ejemplos corresponden al paquete publicado.
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
| Name | Type | Required | Description |
|---|---|---|---|
variant | ArdoBannerVariant | No | Color of the banner, matching the callout of the same name. Defaults to "info". |
children | ReactNode | Yes | Banner content, such as a sentence with a link. |
className | string | No | Additional CSS class. |
Props type: ArdoBannerProps
Example
<Banner variant="warning">Scheduled maintenance on Saturday from 08:00 to 10:00 UTC.</Banner>