--- 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 }) => (

{title}:

{content}
); class App extends React.Component { state = { visible: false }; showDrawer = () => { this.setState({ visible: true, }); }; onClose = () => { this.setState({ visible: false, }); }; 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); ```