mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +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.
36 lines
996 B
TypeScript
36 lines
996 B
TypeScript
import { type Metadata } from "next"
|
|
|
|
import { componentRegistry } from "@/app/(internal)/sink/component-registry"
|
|
import { ComponentWrapper } from "@/app/(internal)/sink/components/component-wrapper"
|
|
|
|
export const dynamic = "force-static"
|
|
export const revalidate = false
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Kitchen Sink",
|
|
description: "A page with all components for testing purposes.",
|
|
}
|
|
|
|
export default function SinkPage() {
|
|
return (
|
|
<div className="@container grid flex-1 gap-4 p-4">
|
|
{Object.entries(componentRegistry)
|
|
.filter(([, component]) => {
|
|
return component.type === "registry:ui"
|
|
})
|
|
.map(([key, component]) => {
|
|
const Component = component.component
|
|
return (
|
|
<ComponentWrapper
|
|
key={key}
|
|
name={key}
|
|
className={component.className || ""}
|
|
>
|
|
<Component />
|
|
</ComponentWrapper>
|
|
)
|
|
})}
|
|
</div>
|
|
)
|
|
}
|