Skip to content

@drawerly/react / useDrawer

useDrawer() ​

ts
function useDrawer<TDrawerOptions>(drawerly, drawerKey): UseDrawerResult<TDrawerOptions>;

Binds to the drawer with the given key.

Type Parameters ​

TDrawerOptions ​

TDrawerOptions extends ReactDrawerOptions = ReactDrawerOptions

Parameters ​

drawerly ​

Drawerly<TDrawerOptions>

drawerKey ​

string

Returns ​

UseDrawerResult<TDrawerOptions>

Released under the MIT License.