Rendyn

Component library

189 components

Product blocks

Banner

Banner coordinates visible state and composed icon, title and action content.

Interactive exampleReact Tailwind CSS

Practical React example

Show a dismissible service message with a durable route to more detail.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/banner/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add button.

Listed package dependencies: @radix-ui/react-use-controllable-state, lucide-react.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Show a dismissible service message with a durable route to more detail

// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";

import {
  Banner,
  BannerAction,
  BannerClose,
  BannerIcon,
  BannerTitle,
} from "@/components/kibo-ui/banner";
import { CircleAlert } from "lucide-react";

const Example = () => (
  <Banner>
    <BannerIcon icon={CircleAlert} />
    <BannerTitle>Important message</BannerTitle>
    <BannerAction>Learn more</BannerAction>
    <BannerClose />
  </Banner>
);

export default Example;

Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.

Control visible when another part of the application owns dismissal. Decide whether dismissing should persist for this session, this message revision or the user’s account.

Customization

BannerContextProps.show
Required; boolean.
BannerContextProps.setShow
Required; (show: boolean) => void.
BannerProps.visible
Optional; boolean.
BannerProps.defaultVisible
Optional; boolean.
BannerProps.onClose
Optional; () => void.
BannerProps.inset
Optional; boolean.
BannerIconProps.icon
Required; LucideIcon.

Integration notes

  • Do not remove the only copy of an important failure or service restriction when the banner is dismissed.
  • A fixed or inset banner must not cover navigation, form errors or mobile controls.

Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP