OPUS/UI

Navigation

Alert

Callouts in info, success, warning, destructive and neutral tones — with actions, inline actions and dismiss.

2 files · 79 locdeps: clsx, tailwind-merge

New version available

OPUS 1.1 adds Reaction–Diffusion and a theme builder.

Deployment complete

Your site is live at opus-landing.vercel.app

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/alert.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs alert

Usage

import { Alert } from "@/components/opus/ui/alert";

<Alert tone="warning" title="Trial ends soon" action={<Button size="xs">Upgrade</Button>} />

API

PropTypeDefaultDescription
tone"info" | "success" | "warning" | "destructive" | "neutral""info"Colour + icon.
title / iconReactNode—Heading; icon={null} hides the icon.
action / inlineActionReactNode / boolean—Buttons below or at the right.
closable / onCloseboolean / () => void—Dismiss.

Command palette