Skip to content

Getting Started ​

Installation ​

bash
pnpm add @drawerly/core
bash
npm install @drawerly/core
bash
yarn add @drawerly/core

Usage ​

Create a manager and open a drawer:

ts
import { createDrawerManager } from '@drawerly/core'

const manager = createDrawerManager()

manager.open({
  drawerKey: 'example-drawer',
})

The manager only tracks state. To render something, use a framework adapter, or subscribe to the manager and drive your own rendering layer. See Managing the Stack for the full API and Styling for the optional stylesheet.

Released under the MIT License.