BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/acme/sheet

sheet

nrjdalal/sheet
FreeComponent

acme publishes no description for this item.

Install it

npx shadcn@latest add https://nrjdalal.dev/r/sheet.json

Source

src/components/ui/sheet.tsxnrjdalal.dev/r/sheet.json
1"use client"
2
3import { cn } from "@/lib/utils"
4import * as SheetPrimitive from "@radix-ui/react-dialog"
5import { XIcon } from "lucide-react"
6import * as React from "react"
7
8function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
9 return <SheetPrimitive.Root data-slot="sheet" {...props} />
10}
11
12function SheetTrigger({
13 ...props
14}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
15 return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
16}
17
18function SheetClose({
19 ...props
20}: React.ComponentProps<typeof SheetPrimitive.Close>) {
21 return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
22}
23
24function SheetPortal({
25 ...props
26}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
27 return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
28}
29
30function SheetOverlay({
31 className,
32 ...props
33}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
34 return (
35 <SheetPrimitive.Overlay
36 data-slot="sheet-overlay"
37 className={cn(
38 "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
39 className,
40 )}
41 {...props}
42 />
43 )
44}
45
46function SheetContent({
47 className,
48 children,
49 side = "right",
50 ...props
51}: React.ComponentProps<typeof SheetPrimitive.Content> & {
52 side?: "top" | "right" | "bottom" | "left"
53}) {
54 return (
55 <SheetPortal>
56 <SheetOverlay />
57 <SheetPrimitive.Content
58 data-slot="sheet-content"
59 className={cn(
60 "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
61 side === "right" &&
62 "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
63 side === "left" &&
64 "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
65 side === "top" &&
66 "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
67 side === "bottom" &&
68 "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
69 className,
70 )}
71 {...props}
72 >
73// … truncated

What it pulls in

npm packages

  • @radix-ui/react-dialog
  • clsx
  • lucide-react
  • react
  • tailwind-merge

Files it writes

  • src/components/ui/sheet.tsx
  • src/lib/utils.ts

Facts

Registry
acme
Type
registry:ui
Access
Free
Files written
2
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

nrjdalal.dev nrjdalal/nrjdalal.com on GitHub Raw registry item This item as JSON

More from acme

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionacmeComponentsFree5 deps · 2 files
alertalertacmeComponentsFree4 deps · 2 files
alert-dialogalert-dialogacmeComponentsFree6 deps · 3 files
aspect-ratioaspect-ratioacmeComponentsFree1 dep
avataravataracmeComponentsFree4 deps · 2 files
badgebadgeacmeComponentsFree5 deps · 2 files
breadcrumbbreadcrumbacmeComponentsFree5 deps · 2 files
buttonbuttonacmeComponentsFree5 deps · 2 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex