Banner
A prominent message strip that surfaces status or announcements with an optional icon and trailing actions.
Show codeHide code
Installation
import { Banner } from "@makeplane/propel/components/banner";Usage
import { Banner } from "@makeplane/propel/components/banner";
import { Button } from "@makeplane/propel/components/button";
import * as React from "react";
export default function BasicDemo() {
const [visible, setVisible] = React.useState(true);
if (!visible) return null;
return (
<Banner
placement="page"
variant="neutral"
title="A new version of the workspace is available"
description="Reload to get the latest features and fixes for your projects."
actions={
<>
<Button stretch="auto" variant="secondary" size="xs" label="Learn more" />
<Button stretch="auto" variant="primary" size="xs" label="Update now" />
</>
}
onDismiss={() => setVisible(false)}
/>
);
}Examples
Variants
Show codeHide code
Placements
Show codeHide code
Sizes
Pass size="sm" for a 13px title with 12px horizontal / 8px vertical padding, or size="md" (the default) for a 14px title with 16px horizontal / 12px vertical padding. Both sizes work with either placement. Titles use medium weight; descriptions use regular weight one step down the scale (13px in md, 12px in sm), with a 2px gap between them. Neutral icons are 14px; semantic icons are 16px and align with the first line.
Size consumer-supplied action Buttons explicitly: xs for a small Banner and sm for a medium Banner. The dismiss control remains 20px in either size. Placement controls the frame only: bottom border for page, rounded full border for inline.
Show codeHide code
Dismissible
Pass onDismiss to render the dedicated trailing dismiss control. The handler fires on click; the banner does not hide itself, so consumers own visibility. Don’t append a dismiss button to actions. Pass a localized dismissLabel when needed; it defaults to Dismiss.
Show codeHide code
Icon
The leading icon defaults to a variant-appropriate glyph. Pass a custom node via icon, or icon={null} to hide it.
Show codeHide code
API Reference
Banner
The ready-made banner: composes the atomic banner parts — the variant icon, the message body
(title + description), trailing actions, and an optional trailing onDismiss control — so
consumers pass content, not layout. Drop down to @makeplane/propel/elements/banner to assemble
the parts directly.