Peek Panel

A right side detail panel with a titled header, a close button and a scrollable body for previewing a record without leaving the list. Tailwind styled.

src/registry/ui/peek-panel.tsx/r/peek-panel.json

Installation#

bash
npx shadcn@latest add @minidev/peek-panel

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/peek-panel.json

Usage#

tsx
import { PeekPanel } from "@/components/ui/peek-panel"

export function Example() {
  return (
    <PeekPanel title="Issue MD-214">
      <p className="text-sm text-fg-muted">Raise the Premium bar without breaking the audit gate.</p>
    </PeekPanel>
  )
}

API reference#

PeekPanel props
PropTypeDefault
title*string-
children*React.ReactNode-
onClose() => void-
classNamestring-

* required

Dependencies#

npm

lucide-react

Built from

Examples#

All dialog, drawer and popover components

Learn more