mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
- Added messages array with success, info, and warning examples - Each message has id, type, title, and description
31 lines
692 B
TypeScript
31 lines
692 B
TypeScript
import { MessageDock } from "@/registry/default/ui/message-dock"
|
|
|
|
export default function MessageDockDemo() {
|
|
const messages = [
|
|
{
|
|
id: "1",
|
|
type: "success" as const,
|
|
title: "Success",
|
|
description: "Your changes have been saved successfully.",
|
|
},
|
|
{
|
|
id: "2",
|
|
type: "info" as const,
|
|
title: "Info",
|
|
description: "New update available.",
|
|
},
|
|
{
|
|
id: "3",
|
|
type: "warning" as const,
|
|
title: "Warning",
|
|
description: "Please review your settings.",
|
|
},
|
|
]
|
|
|
|
return (
|
|
<div className="w-full min-h-[400px] flex items-center justify-center p-8">
|
|
<MessageDock messages={messages} />
|
|
</div>
|
|
)
|
|
}
|