-
-
-
-
- {drawerContent}
-
-
-
-
- );
- }
-}
+```ts file="./DrawerPanelBottom.tsx"
```
### Basic inline
-```js
-import React from 'react';
-import {
- Drawer,
- DrawerPanelContent,
- DrawerContent,
- DrawerContentBody,
- DrawerHead,
- DrawerActions,
- DrawerCloseButton,
- Button
-} from '@patternfly/react-core';
-
-class SimpleDrawerInlineContent extends React.Component {
- constructor(props) {
- super(props);
- this.state = {
- isExpanded: false
- };
- this.drawerRef = React.createRef();
-
- this.onExpand = () => {
- this.drawerRef.current && this.drawerRef.current.focus();
- };
-
- this.onClick = () => {
- const isExpanded = !this.state.isExpanded;
- this.setState({
- isExpanded
- });
- };
-
- this.onCloseClick = () => {
- this.setState({
- isExpanded: false
- });
- };
- }
-
- render() {
- const { isExpanded } = this.state;
- const panelContent = (
-