Skip to content

Drawer

A side sheet you can throw. Its position is one spring and the scrim follows it.

$149 once · every Pro piece

Customize

Drag the inner edge (or the handle of the bottom sheet) and it follows 1:1, rubber-bands past open, and carries your release speed into the spring.

Install

npx shadcn@latest add @obsyde/drawer

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Drawer } from '@/components/obsyde/ember/drawer/Drawer';

export function Example() {
  return (
    <Drawer side="right" />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/drawer/Drawer.tsxcomponent
  • ember/drawer/drawer-demo.cssstyles
  • ember/drawer/drawer.cssstyles
  • ember/drawer/DrawerDemo.tsxdemo
  • ember/overlays-kit/demo.cssshared
  • ember/overlays-kit/kit.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
sideSide'right' | 'left' | 'bottom''right'
titleTitlestring'Details'