Drawer

Info alert:Experimental feature

This is an experimental feature in the early stages of testing. It's not intended for production use.
ExamplesPropsCSS Variables

Examples

Basic

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.

Basic inline

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut. Morbi viverra, eros vel porttitor facilisis, eros purus aliquet erat,nec lobortis felis elit pulvinar sem. Vivamus vulputate, risus eget commodo eleifend, eros nibh porta quam, vitae lacinia leo libero at magna. Maecenas aliquam sagittis orci, et posuere nisi ultrices sit amet. Aliquam ex odio, malesuada sed posuere quis, pellentesque at mauris. Phasellus venenatis massa ex, eget pulvinar libero auctor pretium. Aliquam erat volutpat. Duis euismod justo in quam ullamcorper, in commodo massa vulputate.

Props

Drawer properties
NameTypeRequiredDefaultDescription
classNamestringNo''Additional classes added to the Drawer.
childrenReact.ReactNodeNoContent rendered in the left hand panel
isExpandedbooleanNofalseIndicate if the drawer is expanded
isInlinebooleanNofalseIndicates if the content element and panel element are displayed side by side.
DrawerPanelContent properties
NameTypeRequiredDefaultDescription
classNamestringNo''Additional classes added to the Drawer.
childrenReact.ReactNodeNoContent to rendered in the drawer
noPaddingbooleanNofalseIndicates if there should be padding around the drawer
DrawerContent properties
NameTypeRequiredDefaultDescription
classNamestringNo''Additional classes added to the Drawer.
childrenReact.ReactNodeNoContent to rendered in the drawer

CSS Variables

--pf-c-drawer__content-body--m-padding--PaddingBottomc_drawer__content_body_m_padding_PaddingBottom
var(--pf-global--spacer--lg)
--pf-c-drawer__content-body--m-padding--PaddingLeftc_drawer__content_body_m_padding_PaddingLeft
var(--pf-global--spacer--lg)
--pf-c-drawer__content-body--m-padding--PaddingRightc_drawer__content_body_m_padding_PaddingRight
var(--pf-global--spacer--lg)
--pf-c-drawer__content-body--m-padding--PaddingTopc_drawer__content_body_m_padding_PaddingTop
var(--pf-global--spacer--lg)
--pf-c-drawer__content--FlexBasisc_drawer__content_FlexBasis
100%
--pf-c-drawer__panel--BackgroundColorc_drawer__panel_BackgroundColor
var(--pf-global--BackgroundColor--light-100)
--pf-c-drawer__panel-body--md--PaddingBottomc_drawer__panel_body_md_PaddingBottom
var(--pf-global--spacer--lg)
--pf-c-drawer__panel-body--md--PaddingLeftc_drawer__panel_body_md_PaddingLeft
var(--pf-global--spacer--lg)
--pf-c-drawer__panel-body--md--PaddingRightc_drawer__panel_body_md_PaddingRight
var(--pf-global--spacer--lg)
--pf-c-drawer__panel-body--md--PaddingTopc_drawer__panel_body_md_PaddingTop
var(--pf-global--spacer--lg)
--pf-c-drawer__panel-body--PaddingBottomc_drawer__panel_body_PaddingBottom
0
--pf-c-drawer__panel-body--PaddingLeftc_drawer__panel_body_PaddingLeft
0
--pf-c-drawer__panel-body--PaddingRightc_drawer__panel_body_PaddingRight
0
--pf-c-drawer__panel-body--PaddingTopc_drawer__panel_body_PaddingTop
0
--pf-c-drawer__panel--BoxShadowc_drawer__panel_BoxShadow
none
--pf-c-drawer__panel--FlexBasisc_drawer__panel_FlexBasis
100%
--pf-c-drawer__panel--md--FlexBasisc_drawer__panel_md_FlexBasis
28.125rem
--pf-c-drawer__panel--TransitionDurationc_drawer__panel_TransitionDuration
.25s
--pf-c-drawer__panel--TransitionPropertyc_drawer__panel_TransitionProperty
margin, transform
--pf-c-drawer--m-divider__panel--after--Widthc_drawer_m_divider__panel_after_Width
var(--pf-global--BorderWidth--sm)
--pf-c-drawer--m-divider--m-expanded__panel--after--BackgroundColorc_drawer_m_divider_m_expanded__panel_after_BackgroundColor
var(--pf-global--BorderColor--dark-100)
--pf-c-drawer--m-expanded__panel--BoxShadowc_drawer_m_expanded__panel_BoxShadow
var(--pf-global--BoxShadow--md-left)
--pf-c-drawer--m-expanded--m-panel-left__panel--BoxShadowc_drawer_m_expanded_m_panel_left__panel_BoxShadow
var(--pf-global--BoxShadow--md-right)