Skip to main content

Info Bar

An announcement/alert bar component with glass styling, icons, actions, and dismissible functionality. Supports multiple variants, accent bars, and CSS enter animations.

Installation

$ npx shadcn@latest add @orecus/info-bar
Dependencies:
lucide-react
Registry:
@orecus/color-utilsbutton

Component

Info bars for alerts, notifications, and messages with glass effects and accent colors.

Intent Variants

With Actions

Dismissible

Props

PropTypeDefaultDescription
variant'info' | 'success' | 'warning' | 'error''info'Intent-based styling variant
typeCardType'normal'Glass effect variant
invertbooleanfalseInvert glass overlay
accentBar'none' | 'left' | 'top''left'Accent bar position
accentColorThemeColorOverride accent color (defaults from variant)
titlestringMain message title
descriptionstringSecondary description text
iconReact.ComponentTypeCustom icon (defaults based on variant)
actionsReact.ReactNodeAction buttons/links
dismissiblebooleanfalseShow close button
onDismiss() => voidCallback when dismissed
animation'none' | 'fade' | 'slide-down' | 'slide-left''none'Enter animation type (CSS-only)
animationDurationnumber500Animation duration in ms