Topbar

App top bar that is 56px tall with a title or custom left content and a right slot for actions, avatars or search. Sits above the main content in dashboards.

src/registry/ui/topbar.tsx/r/topbar.json

Installation#

bash
npx shadcn@latest add @minidev/topbar

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/topbar.json

Usage#

tsx
import { Topbar } from "@/components/ui/topbar"

export function Example() {
  return (
    <Topbar left={<span className="text-sm text-fg">Dashboard</span>} />
  )
}

API reference#

Topbar props
PropTypeDefault
titleReact.ReactNode-
leftReact.ReactNode-
rightReact.ReactNode-
classNamestring-

Examples#

All navigation components

Learn more