<nord-layout><nord-buttonid="toggle">Toggle drawer</nord-button><nord-drawerslot="drawer"><nord-headerslot="header"><h3class="n-typescale-l n-truncate">50,00 €</h3><nord-button-groupslot="end"variant="spaced"><nord-buttonvariant="plain"aria-describedby="open-in-new-window"size="s"square><nord-iconname="interface-new-window"size="s"></nord-icon></nord-button><nord-buttonid="close"variant="plain"aria-describedby="close-sidebar"size="s"square><nord-iconname="interface-close"size="s"></nord-icon></nord-button></nord-button-group><nord-tooltipid="open-in-new-window">Open in new window</nord-tooltip><nord-tooltipid="close-sidebar">Close</nord-tooltip></nord-header><dlclass="n-dl"><dt>Status</dt><dd><nord-badgevariant="success">Success</nord-badge></dd><dt>Date</dt><dd>Value 2</dd><dt>Amount</dt><dd>50,00 €</dd><dt>Payment fee</dt><dd>1,75 </dd><dt>Method</dt><dd>Card</dd><dt>Identifier</dt><dd>PAY38DL19710O</dd></dl><nord-dividerclass="n-margin-b-xl"></nord-divider><pclass="n-margin-be-l"> Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p></nord-drawer></nord-layout><script>const layout = document.querySelector("nord-layout")const drawer = document.querySelector("nord-drawer")const toggleButton = document.querySelector("#toggle")const closeButton = document.querySelector("#close")consthide=()=> drawer.remove()constshow=()=> layout.appendChild(drawer) closeButton.addEventListener("click", hide) toggleButton.addEventListener("click",()=>{if(drawer.isConnected){hide()}else{show()}})</script>
<nord-layout><nord-buttonid="toggle">Toggle drawer</nord-button><nord-drawerslot="drawer"><nord-headerslot="header"><h3class="n-typescale-l n-truncate">Drawer header</h3><nord-button-groupslot="end"variant="spaced"><nord-buttonvariant="plain"aria-describedby="open-in-new-window"size="s"square><nord-iconname="interface-new-window"size="s"></nord-icon></nord-button><nord-buttonid="close"variant="plain"aria-describedby="close-sidebar"size="s"square><nord-iconname="interface-close"size="s"></nord-icon></nord-button></nord-button-group><nord-tooltipid="open-in-new-window">Open in new window</nord-tooltip><nord-tooltipid="close-sidebar">Close</nord-tooltip></nord-header><divclass="n-typeset"><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p><p>Suspendisse blandit sodales eros, quis aliquet leo aliquet ultrices lorem ipsum dolor sit.</p></div><nord-button-groupslot="footer"variant="spaced"><nord-button>Cancel</nord-button><nord-buttonvariant="primary">Done</nord-button></nord-button-group></nord-drawer></nord-layout><script>const layout = document.querySelector("nord-layout")const drawer = document.querySelector("nord-drawer")const toggleButton = document.querySelector("#toggle")const closeButton = document.querySelector("#close")consthide=()=> drawer.remove()constshow=()=> layout.appendChild(drawer) closeButton.addEventListener("click", hide) toggleButton.addEventListener("click",()=>{if(drawer.isConnected){hide()}else{show()}})</script>
Properties
Property
Attribute
Description
Type
Default
padding
padding
Controls the padding of the drawer component.
"m" | "none"
"m"
Slots
Slot name
Description
header
Optional slot that holds a header for the drawer.
Default slot
Default slot.
footer
Optional slot that holds footer content for the drawer.
CSS Properties
CSS Custom Properties provide more fine grain control over component presentation. We advise utilizing existing properties on the component before using these.
Property
Description
Default
--n-drawer-padding
Controls the padding around the main area (the default slot), using our spacing tokens.
var(--n-space-l)
Dependencies
This component is internally dependent on the following components:
You can customize the width of the component using --n-layout-drawer-inline-size CSS Custom Property that is offered on Layout component.
Integration
For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.
Integration Guidelines
Troubleshooting
If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.