Components

DrawerPortal

<DrawerPortal />

Constructor

# <DrawerPortal />

Shows all of its children in a Drawer on the right.

Instead of rendering it's own Drawer component it reuses the global Drawer via React Portal.

Usage

import { DrawerPortal } from 'adminjs'

View Source adminjs/src/frontend/components/app/drawer-portal.tsx, line 21

Type Definitions

object

# DrawerPortalProps

Properties:
Name Type Attributes Description
children ReactNode

The drawer content

width number | string | Array.<(number|string)> <optional>

Optional drawer width

View Source adminjs/src/frontend/components/app/drawer-portal.tsx, line 56