import React from 'react'; import { Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerHead, DrawerActions, DrawerCloseButton, DrawerPanelBody, Button } from '@breakaway/preact-core'; export const DrawerStackedContentBodyElements: React.FunctionComponent = () => { const [isExpanded, setIsExpanded] = React.useState(false); const drawerRef = React.useRef(); const onExpand = () => { drawerRef.current && drawerRef.current.focus(); }; const onClick = () => { setIsExpanded(!isExpanded); }; const onCloseClick = () => { setIsExpanded(false); }; const panelContent = (

drawer title{' '}

drawer-panel
drawer-panel with no padding drawer-panel
); return ( content-body content-body with padding content-body ); };