mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-02 10:35:35 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
import { Button } from "@/registry/new-york-v4/ui/button"
|
|
import { Separator } from "@/registry/new-york-v4/ui/separator"
|
|
import { SidebarTrigger } from "@/registry/new-york-v4/ui/sidebar"
|
|
import { ModeToggle } from "@/app/(examples)/dashboard/components/mode-toggle"
|
|
import { ThemeSelector } from "@/app/(examples)/dashboard/components/theme-selector"
|
|
|
|
export function SiteHeader() {
|
|
return (
|
|
<header className="flex h-(--header-height) shrink-0 items-center gap-2 border-b transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)">
|
|
<div className="flex w-full items-center gap-1 px-4 lg:gap-2 lg:px-6">
|
|
<SidebarTrigger className="-ml-1" />
|
|
<Separator
|
|
orientation="vertical"
|
|
className="mx-2 data-[orientation=vertical]:h-4"
|
|
/>
|
|
<h1 className="text-base font-medium">Documents</h1>
|
|
<div className="ml-auto flex items-center gap-2">
|
|
<Button variant="ghost" asChild size="sm" className="hidden sm:flex">
|
|
<a
|
|
href="https://github.com/shadcn-ui/ui/tree/main/apps/v4/app/(examples)/dashboard"
|
|
rel="noopener noreferrer"
|
|
target="_blank"
|
|
className="dark:text-foreground"
|
|
>
|
|
GitHub
|
|
</a>
|
|
</Button>
|
|
<ThemeSelector />
|
|
<ModeToggle />
|
|
</div>
|
|
</div>
|
|
</header>
|
|
)
|
|
}
|