Registry Preview
A resizable preview component with a dotted grid background for showcasing components in a responsive container.
Preview
Installation
Install the registry-preview
npx shadcn@latest add https://jt-components.vercel.app/r/registry-preview.jsonpnpm dlx shadcn@latest add https://jt-components.vercel.app/r/registry-preview.jsonyarn dlx shadcn@latest add https://jt-components.vercel.app/r/registry-preview.jsonbunx --bun shadcn@latest add https://jt-components.vercel.app/r/registry-preview.jsonUsage
import RegistryPreview from "@/components/registry-preview"<RegistryPreview>
<YourComponent />
</RegistryPreview>Props
| Prop | Type | Default |
|---|---|---|
showGrid? | boolean | true |
className? | string | - |
maxWidth? | string | "4xl" |
minHeight? | string | "350px" |
maxSize? | number | 98 |
minSize? | number | 5 |
defaultSize? | number | 98 |
children | ReactNode | - |
Source Code
Loading component...
Examples
Without Grid Background
Custom Dimensions
Last updated on