mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
* feat: init * fix * fix * fix * feat * feat * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * feat: implement icons * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * feat: update init command * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * feat: dialog * feat * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * feat: add registry:base item type * feat: rename frame to canva * fix * feat * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fi * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * feat: add all colors * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * feat: add outfit font * fix * fix * fix * fix * fix * chore: changeset * fix * fix * fix * fix * fix * fix * fix * fix
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>
|
|
)
|
|
}
|