Home > @uniformdev/design-system > DrawerProvider

DrawerProvider() function

Provides the context to the Drawer and DrawerRenderer components.

Signature:

Parameters

ParameterTypeDescription
{ children }React__default.PropsWithChildren

Returns:

_emotion_react_jsx_runtime.JSX.Element

Example

<DrawerProvider><Drawer id="my-drawer" stackId="my-stack" header="Title">Hello</Drawer><DrawerRenderer stackId="my-stack"/></DrawerProvider>