BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/sheet

sheet

draco-china-github/sheet
FreeComponent

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/draco-china/shadcn-pro/main/apps/docs/public/r/styles/radix-sera/sheet.json

Source

registry/radix-sera/ui/sheet.tsxraw.githubusercontent.com/draco-china/shadcn-pro/main/apps/docs/public/r/styles/radix-sera/sheet.json
1"use client"
2
3import * as React from "react"
4import { Dialog as SheetPrimitive } from "radix-ui"
5
6import { cn } from "@/registry/radix-sera/lib/utils"
7import { Button } from "@/registry/radix-sera/ui/button"
8import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
9
10function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
11 return <SheetPrimitive.Root data-slot="sheet" {...props} />
12}
13
14function SheetTrigger({
15 ...props
16}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
17 return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
18}
19
20function SheetClose({
21 ...props
22}: React.ComponentProps<typeof SheetPrimitive.Close>) {
23 return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
24}
25
26function SheetPortal({
27 ...props
28}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
29 return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
30}
31
32function SheetOverlay({
33 className,
34 ...props
35}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
36 return (
37 <SheetPrimitive.Overlay
38 data-slot="sheet-overlay"
39 className={cn(
40 "fixed inset-0 z-50 bg-black/20 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
41 className
42 )}
43 {...props}
44 />
45 )
46}
47
48function SheetContent({
49 className,
50 children,
51 side = "right",
52 showCloseButton = true,
53 ...props
54}: React.ComponentProps<typeof SheetPrimitive.Content> & {
55 side?: "top" | "right" | "bottom" | "left"
56 showCloseButton?: boolean
57}) {
58 return (
59 <SheetPortal>
60 <SheetOverlay />
61 <SheetPrimitive.Content
62 data-slot="sheet-content"
63 data-side={side}
64 className={cn(
65// … truncated

What it pulls in

Other registry items

  • button

Files it writes

  • registry/radix-sera/ui/sheet.tsx

Facts

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

Go to the source

draco-china.github.io draco-china/shadcn-pro on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 201 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn/uiComponentsFreeno deps
alertalertshadcn/uiComponentsFreeno deps
alert-dialogalert-dialogshadcn/uiComponentsFreeno deps
aspect-ratioaspect-ratioshadcn/uiComponentsFreeno deps
avataravatarshadcn/uiComponentsFreeno deps
badgebadgeshadcn/uiComponentsFreeno deps
breadcrumbbreadcrumbshadcn/uiComponentsFreeno deps
buttonbuttonshadcn/uiComponentsFreeno 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