BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-solidjs/sheet

sheet

shadcn-solidjs/sheet
FreeComponent

shadcn-solidjs publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by shadcn-solidjs on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://shadcn-solidjs.com/r/sheet.json

Source

src/registry/ui/sheet.tsxshadcn-solidjs.com/r/sheet.json · first 6 KB
1import * as SheetPrimitive from "@kobalte/core/dialog";
2import type { PolymorphicProps } from "@kobalte/core/polymorphic";
3
4import { cn } from "~/lib/utils.ts";
5import IconX from "~icons/lucide/x";
6import type { Component, ComponentProps, JSX, ValidComponent } from "solid-js";
7
8import { mergeProps, Show, splitProps } from "solid-js";
9import { buttonVariants } from "./button.tsx";
10
11const Sheet = SheetPrimitive.Root;
12const SheetPortal = SheetPrimitive.Portal;
13
14type SheetTriggerProps<T extends ValidComponent = "button"> =
15 & SheetPrimitive.DialogTriggerProps<T>
16 & { class?: string | undefined };
17
18const SheetTrigger = <T extends ValidComponent = "button">(
19 props: PolymorphicProps<T, SheetTriggerProps<T>>,
20) => {
21 return (
22 <SheetPrimitive.Trigger
23 data-slot="sheet-trigger"
24 {...(props as SheetTriggerProps)}
25 />
26 );
27};
28
29type SheetCloseProps<T extends ValidComponent = "button"> =
30 & SheetPrimitive.DialogCloseButtonProps<T>
31 & { class?: string | undefined };
32
33const SheetClose = <T extends ValidComponent = "button">(
34 props: PolymorphicProps<T, SheetCloseProps<T>>,
35) => {
36 return (
37 <SheetPrimitive.CloseButton
38 data-slot="sheet-close"
39 {...(props as SheetCloseProps)}
40 />
41 );
42};
43
44type SheetOverlayProps<T extends ValidComponent = "div"> =
45 & SheetPrimitive.DialogOverlayProps<T>
46 & { class?: string | undefined };
47
48const SheetOverlay = <T extends ValidComponent = "div">(
49 props: PolymorphicProps<T, SheetOverlayProps<T>>,
50) => {
51 const [local, others] = splitProps(props as SheetOverlayProps, ["class"]);
52 return (
53 <SheetPrimitive.Overlay
54 data-slot="sheet-overlay"
55 class={cn(
56 "bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-closed:fade-out-0 data-expanded:fade-in-0 fixed inset-0 z-50 duration-100 data-closed:animate-out data-expanded:animate-in",
57 local.class,
58 )}
59 {...others}
60 />
61 );
62};
63
64type SheetContentProps<T extends ValidComponent = "div"> =
65 & SheetPrimitive.DialogContentProps<T>
66 & {
67 class?: string | undefined;
68 children?: JSX.Element;
69 side?: "top" | "right" | "bottom" | "left";
70 showCloseButton?: boolean;
71 };
72
73const SheetContent = <T extends ValidComponent = "div">(
74 rawProps: PolymorphicProps<T, SheetContentProps<T>>,
75) => {
76 const props = mergeProps(
77 { side: "right" as const, showCloseButton: true },
78 rawProps as SheetContentProps,
79 );
80 const [local, others] = splitProps(props, [
81 "class",
82 "children",
83 "side",
84// … truncated

What it pulls in

npm packages

  • @kobalte/core

Other registry items

  • button

Facts

Registry
shadcn-solidjs
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-16
Last confirmed
today

Go to the source

Docs on shadcn-solidjs shadcn-solidjs.com ptzburn/shadcn-solidjs on GitHub Raw registry item This item as JSON

More from shadcn-solidjs

All 85 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn-solidjsComponentsFree1 dep
alertalertshadcn-solidjsComponentsFree2 deps
alert-dialogalert-dialogshadcn-solidjsComponentsFree2 deps
aspect-ratioaspect-ratioshadcn-solidjsComponentsFreeno deps
attachmentattachmentshadcn-solidjsComponentsFree2 deps
avataravatarshadcn-solidjsComponentsFree1 dep
badgebadgeshadcn-solidjsComponentsFree2 deps
breadcrumbbreadcrumbshadcn-solidjsComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex