FEEDBACK · COMPONENT

Banner

A shared announcement with a clear next step and dismissal.

@raydenui/ui 0.10.1React + TypeScript
Documentation ↗
Loading the real component…
"use client";
import { useState } from "react";
import { Banner, Button } from "@raydenui/ui";
import "@raydenui/ui/styles.css";
export default function Example({ state = "default" }: { state?: string }) {
  const [visible, setVisible] = useState(true);
  const [message, setMessage] = useState("");
  return <div style={{ width: "100%" }}>{visible ? <Banner title="A little more room for your ideas." description="Explore a new demo workspace layout." status={state === "warning" ? "warning" : "feature"} emphasis={state === "bold" ? "bold" : "subtle"} size="lg" buttonLabel="Explore the update" onButtonClick={() => setMessage("Demo update opened. Your real workspace has not changed.")} onDismiss={() => setVisible(false)} /> : <Button variant="secondary" onClick={() => setVisible(true)}>Show announcement</Button>}<p role="status" style={{ marginTop: 28 }}>{message}</p></div>;
}
Live library components · illustrative demo data · no remote submissionsReset returns to the initial example.

Made for real interfaces.

A banner presents a fictional update with an action and a functioning dismissal control. Restoring the announcement makes the interaction repeatable.

Try it

Explore the update, dismiss it and show it again. Compare bold and warning appearances.