---
order: 4
title:
zh-CN: 信息预览抽屉
en-US: Preview drawer
---
## zh-CN
需要快速预览对象概要时使用,点击遮罩区关闭。
## en-US
Use when you need to quickly preview the outline of the object. Such as list item preview.
```jsx
import { Drawer, List, Avatar, Divider, Col, Row } from 'antd';
const pStyle = {
fontSize: 16,
color: 'rgba(0,0,0,0.85)',
lineHeight: '24px',
display: 'block',
marginBottom: 16,
};
const DescriptionItem = ({ title, content }) => {
return (
);
};
class App extends React.Component {
state = { visible: false };
toogerHotjar = () => {
const hotjar = document.getElementById('_hj_feedback_container');
if (hotjar.style.display === 'none') {
hotjar.style.display = '';
} else {
hotjar.style.display = 'none';
}
};
showDrawer = () => {
this.toogerHotjar();
this.setState({
visible: true,
});
};
onClose = () => {
this.setState(
{
visible: false,
},
() => {
this.toogerHotjar();
}
);
};
render() {
return (
(
View Profile]}>
}
title={{item.name}}
description="Progresser AFX"
/>
)}
/>
User Profile
Personal
{' '}
Company
Lin} />
Contacts
github.com/ant-design/ant-design/
}
/>
);
}
}
ReactDOM.render(, mountNode);
```