Live demo
Demo source
nv-drawerfooter shows a cancel and a primary button in the drawer's
footer slot, named by cancelLabel and primaryLabel. undismissable
removes Cancel, danger marks a destructive action and disabled turns off
the primary button. The buttons emit drawerCanceled and
drawerPrimaryClicked. Cancel closes an uncontrolled, dismissible drawer,
including when this footer is slotted. With controlled, update open in
your handler. The primary action leaves closing to the application.
Anatomy
The drawer anatomy shows the footer and its actions below the body in the drawer composition.
Usage
Keep the main action and dismissal available below the scrolling body. For a multi-step task, the default slot can replace the button pair with custom navigation; wire those controls to application state. The parent design's footer is optional, but this component renders its default pair unless you supply replacement content.