Pinned Message

A highlighted pinned note for chat channels and threads with a pin icon, a Pinned by author line and the message body on an accent tinted Tailwind background.

src/registry/ui/pinned-message.tsx/r/pinned-message.json

Installation#

bash
npx shadcn@latest add @minidev/pinned-message

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/pinned-message.json

Usage#

tsx
import { PinnedMessage } from "@/components/ui/pinned-message"

export function Example() {
  return <PinnedMessage />
}

API reference#

PinnedMessage props
PropTypeDefault
authorstring"Ops"
bodystring"Client walkthrough lives at /showcas...
classNamestring-

Dependencies#

npm

lucide-react

Built from

No other MiniDev files
All AI chat UI components for React