BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@nivalis/ui/drawer
This component no longer exists. It was in @nivalis/ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-06 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Drawer

nivalis-ui/drawer
RemovedComponent

A drawer component.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nivalis-studio/nivalis-ui/main/public/r/drawer.json

Source

registry/niv/ui/drawer.tsxraw.githubusercontent.com/nivalis-studio/nivalis-ui/main/public/r/drawer.json
1'use client';
2
3import { Drawer as DrawerPrimitive } from 'vaul';
4import { cn } from '@/lib/classnames';
5import type { ComponentProps } from 'react';
6
7function DrawerRoot({ ...props }: ComponentProps<typeof DrawerPrimitive.Root>) {
8 return <DrawerPrimitive.Root data-slot='drawer' {...props} />;
9}
10
11function DrawerTrigger({
12 ...props
13}: ComponentProps<typeof DrawerPrimitive.Trigger>) {
14 return <DrawerPrimitive.Trigger data-slot='drawer-trigger' {...props} />;
15}
16
17function DrawerPortal({
18 ...props
19}: ComponentProps<typeof DrawerPrimitive.Portal>) {
20 return <DrawerPrimitive.Portal data-slot='drawer-portal' {...props} />;
21}
22
23function DrawerClose({
24 ...props
25}: ComponentProps<typeof DrawerPrimitive.Close>) {
26 return <DrawerPrimitive.Close data-slot='drawer-close' {...props} />;
27}
28
29function DrawerOverlay({
30 className,
31 ...props
32}: ComponentProps<typeof DrawerPrimitive.Overlay>) {
33 return (
34 <DrawerPrimitive.Overlay
35 className={cn(
36 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in',
37 className,
38 )}
39 data-slot='drawer-overlay'
40 {...props}
41 />
42 );
43}
44
45function DrawerContent({
46 className,
47 children,
48 ...props
49}: ComponentProps<typeof DrawerPrimitive.Content>) {
50 return (
51 <DrawerPortal data-slot='drawer-portal'>
52 <DrawerOverlay />
53 <DrawerPrimitive.Content
54 className={cn(
55 'group/drawer-content fixed z-50 flex h-auto flex-col bg-background',
56 'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b',
57 'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t',
58 'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm',
59// … truncated

What it pulls in

npm packages

  • vaul

Files it writes

  • registry/niv/ui/drawer.tsx

Facts

Registry
@nivalis/ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-02
Last confirmed
13 days ago

Go to the source

ui.nivalis.studio nivalis-studio/nivalis-ui on GitHub Raw registry item This item as JSON

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