Sheet Glass
shadcn-glass-ui/sheet-glassFreeComponent
Glass-themed sheet/drawer component with full shadcn/ui Sheet API compatibility. * Slides in from top, right, bottom, or left edges with backdrop overlay and blur effects. * * ## Features
Install it
npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/sheet-glass.jsonSource
1/* eslint-disable react-refresh/only-export-components */2/**3 * SheetGlass Component4 *5 * Glass-themed sheet/drawer component with full shadcn/ui Sheet API compatibility.6 * Slides in from top, right, bottom, or left edges with backdrop overlay and blur effects.7 *8 * ## Features9 * - 4 slide directions: top, right, bottom, left10 * - Backdrop overlay with blur effect and click-to-close11 * - Auto close button in corner (optional via showCloseButton)12 * - ESC key and click-outside to dismiss13 * - Focus trap and keyboard navigation14 * - Portal rendering (always in document.body)15 * - Controlled and uncontrolled modes16 * - 100% shadcn/ui compatible API17 * - Theme-aware glass styling via CSS variables18 *19 * ## Sub-Components20 * - **SheetGlass.Root / Sheet**: Sheet root with open/onOpenChange state21 * - **SheetGlass.Trigger / SheetTrigger**: Opens sheet when clicked (supports asChild)22 * - **SheetGlass.Portal / SheetPortal**: Renders children into portal23 * - **SheetGlass.Overlay / SheetOverlay**: Backdrop with glass blur effect24 * - **SheetGlass.Content / SheetContent**: Main container with side prop and glass styling25 * - **SheetGlass.Header / SheetHeader**: Header section with flex layout26 * - **SheetGlass.Title / SheetTitle**: Sheet title with accessibility27 * - **SheetGlass.Description / SheetDescription**: Sheet description text28 * - **SheetGlass.Footer / SheetFooter**: Footer with action buttons layout29 * - **SheetGlass.Close / SheetClose**: Closes sheet when clicked (supports asChild)30 *31 * ## CSS Variables32 * Uses ModalGlass CSS variables for consistent styling:33 * - `--modal-bg`: Sheet background color (glass effect)34 * - `--modal-border`: Sheet border color35 * - `--modal-glow`: Sheet shadow/glow effect36 * - `--modal-glow-effect`: Inner glow layer37 * - `--modal-overlay`: Backdrop overlay color38 * - `--modal-close-btn-bg`: Close button background39 * - `--modal-close-btn-border`: Close button border40 *41 * @example Navigation drawer (left side)42 * ```tsx43 * import { SheetGlass, ButtonGlass } from 'shadcn-glass-ui'44 *45 * function Navigation() {46 * return (47 * <SheetGlass.Root>48 * <SheetGlass.Trigger asChild>49 * <ButtonGlass>Menu</ButtonGlass>50 * </SheetGlass.Trigger>51 * <SheetGlass.Content side="left">52 * <SheetGlass.Header>53 * <SheetGlass.Title>Navigation</SheetGlass.Title>54 * </SheetGlass.Header>55 * <nav>...</nav>56 * </SheetGlass.Content>57 * </SheetGlass.Root>58 * )59 * }60// … truncated
More from shadcn-glass-ui
All 76 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Alert Glassalert-glass | shadcn-glass-ui | Components | Free | no deps | |
| Animated Background Glassanimated-background-glass | shadcn-glass-ui | Components | Free | no deps | |
| Avatar Glassavatar-glass | shadcn-glass-ui | Components | Free | no deps | |
| Badge Glassbadge-glass | shadcn-glass-ui | Components | Free | no deps | |
| Base Progress Glassbase-progress-glass | shadcn-glass-ui | Components | Free | no deps | |
| Button Glassbutton-glass | shadcn-glass-ui | Components | Free | no deps | |
| Card Glasscard-glass | shadcn-glass-ui | Components | Free | no deps | |
| Checkbox Glasscheckbox-glass | shadcn-glass-ui | Components | Free | no deps |
