Module: Shadcn::Drawer

Extended by:
Parts
Defined in:
app/components/shadcn/drawer.rb,
app/components/shadcn/drawer/preview.rb,
app/components/shadcn/drawer/component.rb,
app/components/shadcn/drawer/header/component.rb,
app/components/shadcn/drawer/content/component.rb

Overview

The parts of the Drawer family that are just an element with a data-slot and a fixed set of classes. Anything with variants, slots or markup of its own keeps its own component.rb.

Upstream builds this on vaul, not on Radix — but vaul is itself a Radix Dialog with a drag on top (import * as DialogPrimitive from '@radix-ui/react-dialog' is its third line), so the parts that are only markup come from the Dialog here for the same reason the Sheet's do.

Defined Under Namespace

Modules: Content, Header Classes: Component, Preview

Method Summary

Methods included from Parts

part