DDBS UI
navigation

App Topbar

A dashboard top bar: page title, subtitle, a flexible actions slot and a mobile menu button.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/app-topbar.json
Dependencies:lucide-react
Fullscreen

Warehouse operations

Last updated: today, 14:32

Usage

app-topbar-example.tsx
"use client";

import { FilterPopover, AppTopbar } from "@dbs/ui";
import { useState } from "react";

export default function AppTopbarExample() {
  const [status, setStatus] = useState<string[]>([]);
  return (
    <div className="min-h-[300px] w-full overflow-hidden rounded-2xl border border-line">
      <AppTopbar title="Warehouse operations" subtitle="Last updated: today, 14:32" onMenuClick={() => undefined}>
        <FilterPopover
          value={status}
          onChange={setStatus}
          options={[
            { value: "loading", label: "Loading" },
            { value: "ready", label: "Ready" },
            { value: "completed", label: "Completed" },
          ]}
        />
        <button type="button" className="h-10 rounded-lg bg-primary px-4 text-[13px] font-medium text-primary-ink">Quick shipment</button>
      </AppTopbar>
    </div>
  );
}