Dev Design Library

Announcement Banner

Dismissing folds the bar away and the page slides up to fill the gap.

Announcement Banner preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/announcement-banner.json
Files
  • src/lab/components/announcement-banner.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab