BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aomi/sheet

sheet

aomi/sheet
FreeComponent

Extends the Dialog component to display content that complements the main content of the screen.

Install it

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

Source

components/ui/sheet.tsxaomi.dev/r/sheet.json
1"use client"
2
3import * as React from "react"
4import { XIcon } from "lucide-react"
5import * as SheetPrimitive from "@radix-ui/react-dialog"
6
7import { cn } from "@aomi-labs/react"
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// … truncated

What it pulls in

npm packages

  • radix-ui
  • lucide-react

Files it writes

  • components/ui/sheet.tsx

Facts

Registry
aomi
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-08
Last confirmed
yesterday

Go to the source

aomi.dev aomi-labs/aomi on GitHub Raw registry item This item as JSON

More from aomi

All 34 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionaomiComponentsFree2 deps
alertalertaomiComponentsFree1 dep
aomi-frameaomi-frameaomiComponentsFree1 dep
aomi-para-provideraomi-para-provideraomiComponentsFree9 deps · 27 files
aomi-privy-provideraomi-privy-provideraomiComponentsFree7 deps · 15 files
aomi-wallet-kitaomi-wallet-kitaomiComponentsFree8 deps · 59 files
aomi-widgetaomi-widgetaomiComponentsFree2 deps
assistant-threadassistant-threadaomiComponentsFree6 deps · 23 files
BlockDex

Built by

Kynth Studios

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 Studios

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 Studios

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