Skip to content

API Reference

Interfaces

InterfaceDescription
DrawerContentPropsProp injected into every component rendered inside a drawer panel.
DrawerlyDrawerly instance created by createDrawerly.
DrawerlyOptionsConfiguration options for createDrawerly.
DrawerManagerPublic API for managing a stack of drawers.
DrawerManagerConfigConfiguration accepted by createDrawerManager.
DrawerOptionsShared options for all drawers.
DrawerStateDrawer manager state.
UseDrawerResultReturned by useDrawer.
VueDrawerOptionsDrawer options for the Vue adapter.

Type Aliases

Type AliasDescription
DrawerDefaultOptionsDefault options applied to new drawers.
DrawerInstanceConcrete drawer instance (full options including drawerKey).
DrawerKeyKey used to identify a drawer instance.
DrawerListenerListener called whenever the drawer state changes.
DrawerOptionsWithoutKeyDrawer options without the drawerKey field.
DrawerPatchPartial set of options merged into a drawer.
DrawerPlacementPlacement of a drawer relative to the viewport.
DrawerPredicatePredicate used for drawer behaviors.
UnsubscribeFunction that unsubscribes a state listener.

Variables

VariableDescription
BASE_DRAWER_DEFAULTSBuilt-in defaults applied to every drawer manager.
DrawerlyContainerRenders and animates the active drawer stack.
drawerlyInjectionKeyInjection key for the Drawerly instance.

Functions

FunctionDescription
createDrawerlyCreates a Drawerly instance to be installed with app.use().
createDrawerManagerCreates a new drawer manager backed by an in-memory stack.
resolveDrawerPredicateResolves a DrawerPredicate against a drawer instance.
useDrawerBinds to the drawer with the given key.
useDrawerlyReturns the installed Drawerly instance.

Released under the MIT License.