Example
agileflow-projectquestorg/exampleFreeComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/example.jsonSource
1import { cn } from "@/registry/bases/radix/lib/utils"23function ExampleWrapper({ className, ...props }: React.ComponentProps<"div">) {4 return (5 <div className="bg-background w-full">6 <div7 data-slot="example-wrapper"8 className={cn(9 "mx-auto grid min-h-screen w-full max-w-5xl min-w-0 content-center items-start gap-8 p-4 pt-2 sm:gap-12 sm:p-6 md:grid-cols-2 md:gap-8 lg:p-12 2xl:max-w-6xl",10 className11 )}12 {...props}13 />14 </div>15 )16}1718function Example({19 title,20 children,21 className,22 containerClassName,23 ...props24}: React.ComponentProps<"div"> & {25 title: string26 containerClassName?: string27}) {28 return (29 <div30 data-slot="example"31 className={cn(32 "mx-auto flex w-full max-w-lg min-w-0 flex-col gap-1 self-stretch lg:max-w-none",33 containerClassName34 )}35 {...props}36 >37 <div className="text-muted-foreground px-1.5 py-2 text-xs font-medium">38 {title}39 </div>40 <div41 data-slot="example-content"42 className={cn(43 "bg-background text-foreground flex min-w-0 flex-1 flex-col items-start gap-6 border border-dashed p-4 sm:p-6 *:[div:not([class*='w-'])]:w-full",44 className45 )}46 >47 {children}48 </div>49 </div>50 )51}5253export { ExampleWrapper, Example }
Files it writes
More from shadcn/ui
All 133 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps |
