ba-web-components/src/components/drawer
Alan Bridgeman 5024375e20
Some checks failed
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Failing after 52m26s
Inital code commit
2026-05-13 01:39:35 -05:00
..
drawer.css Inital code commit 2026-05-13 01:39:35 -05:00
drawer.ejs Inital code commit 2026-05-13 01:39:35 -05:00
drawer.js Inital code commit 2026-05-13 01:39:35 -05:00
README.md Inital code commit 2026-05-13 01:39:35 -05:00

Accessible Drawer

Drawers allow for the opening and closing of information sections.

Usage

to use this component:

<%- useComponent('drawer', { id: 'example-drawer', content: `<div><h2>Hello World!</h2><p>This is a drawer!</p></div>` }) %>

Parameters

Parameter type Description
id string The ID of the drawer
label HTML The label on the drawer's "handle" (button)
content HTML The content of the drawer
drawerExtraStyles Various Extra CSS to be included in the components Shadow DOM
drawerExtraScripts Various Extra JS scripts to be included in the components Shadow DOM