mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +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.
29 lines
784 B
TypeScript
29 lines
784 B
TypeScript
import Link from "next/link"
|
|
|
|
import { Atom } from "@/components/lo-fi/atom"
|
|
|
|
function Component({ href, ...props }: React.ComponentProps<typeof Link>) {
|
|
return <Link href={href} className="group flex flex-col gap-2" {...props} />
|
|
}
|
|
|
|
function ComponentContent({ ...props }: React.ComponentProps<typeof Atom>) {
|
|
return (
|
|
<Atom
|
|
shade="50"
|
|
className="bg-muted/30 ring-muted flex aspect-video items-center justify-center rounded-lg p-4 ring *:w-full *:max-w-[70%]"
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
function ComponentName({ ...props }: React.ComponentProps<"div">) {
|
|
return (
|
|
<div
|
|
className="text-foreground text-center font-medium underline-offset-2 group-hover:underline"
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Component, ComponentContent, ComponentName }
|