snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
13
apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx
Normal file
13
apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { cn } from "cn"
|
||||
|
||||
export function ComponentPreview({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"bg-background *:data-[slot=card]:has-[[data-slot=chart]]:shadow-none"
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user