BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gmhlab/sheet

sheet

gmhlab/sheet
FreeComponent

gmhlab publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/sheet.json

Source

registry/new-york/ui/sheet.tsxraw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/sheet.json
1"use client"
2
3import * as React from "react"
4import { XIcon } from "lucide-react"
5import { Dialog as SheetPrimitive } from "radix-ui"
6
7import { cn } from "@/lib/utils"
8
9function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
10 return <SheetPrimitive.Root data-slot="sheet" {...props} />
11}
12
13function SheetTrigger({
14 ...props
15}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
16 return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
17}
18
19function SheetClose({
20 ...props
21}: React.ComponentProps<typeof SheetPrimitive.Close>) {
22 return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
23}
24
25function SheetPortal({
26 ...props
27}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
28 return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
29}
30
31function SheetOverlay({
32 className,
33 ...props
34}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
35 return (
36 <SheetPrimitive.Overlay
37 data-slot="sheet-overlay"
38 className={cn(
39 "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/50",
40 className
41 )}
42 {...props}
43 />
44 )
45}
46
47function SheetContent({
48 className,
49 children,
50 side = "right",
51 showCloseButton = true,
52 ...props
53}: React.ComponentProps<typeof SheetPrimitive.Content> & {
54 side?: "top" | "right" | "bottom" | "left"
55 showCloseButton?: boolean
56}) {
57 return (
58 <SheetPortal>
59 <SheetOverlay />
60 <SheetPrimitive.Content
61 data-slot="sheet-content"
62 className={cn(
63 "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",
64 side === "right" &&
65 "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",
66 side === "left" &&
67 "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",
68 side === "top" &&
69 "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
70 side === "bottom" &&
71 "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
72 className
73// … truncated

What it pulls in

npm packages

  • lucide-react
  • radix-ui

Files it writes

  • registry/new-york/ui/sheet.tsx

Facts

Registry
gmhlab
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

gwglobalmentalhealth.com gmhlab/monorepo on GitHub Raw registry item This item as JSON

More from gmhlab

All 64 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordiongmhlabComponentsFree2 deps
alertalertgmhlabComponentsFree1 dep
alert-dialogalert-dialoggmhlabComponentsFree1 dep
aspect-ratioaspect-ratiogmhlabComponentsFree1 dep
avataravatargmhlabComponentsFree1 dep
badgebadgegmhlabComponentsFree2 deps
breadcrumbbreadcrumbgmhlabComponentsFree2 deps
buttonbuttongmhlabComponentsFree2 deps
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