@drawerly/react / useDrawerly
useDrawerly()
ts
function useDrawerly<TDrawerOptions>(drawerly): UseDrawerlyResult<TDrawerOptions>;Subscribes to a Drawerly instance and returns its manager API together with the drawer stack.
Type Parameters
TDrawerOptions
TDrawerOptions extends ReactDrawerOptions = ReactDrawerOptions
Parameters
drawerly
Drawerly<TDrawerOptions>
Returns
UseDrawerlyResult<TDrawerOptions>