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.
24 lines
682 B
TypeScript
24 lines
682 B
TypeScript
import * as React from "react"
|
|
import { ScrollArea } from "@/examples/radix/ui/scroll-area"
|
|
import { Separator } from "@/examples/radix/ui/separator"
|
|
|
|
const tags = Array.from({ length: 50 }).map(
|
|
(_, i, a) => `v1.2.0-beta.${a.length - i}`
|
|
)
|
|
|
|
export function ScrollAreaDemo() {
|
|
return (
|
|
<ScrollArea className="h-72 w-48 rounded-md border">
|
|
<div className="p-4">
|
|
<h4 className="mb-4 text-sm leading-none font-medium">Tags</h4>
|
|
{tags.map((tag) => (
|
|
<React.Fragment key={tag}>
|
|
<div className="text-sm">{tag}</div>
|
|
<Separator className="my-2" />
|
|
</React.Fragment>
|
|
))}
|
|
</div>
|
|
</ScrollArea>
|
|
)
|
|
}
|