--- order: 5 title: zh-CN: 布局 en-US: Use with Grid --- ## zh-CN Checkbox.Group 内嵌 Checkbox 并与 Grid 组件一起使用,可以实现灵活的布局。 ## en-US We can use Checkbox and Grid in Checkbox.Group, to implement complex layout. ```tsx import { Checkbox, Col, Row } from 'antd'; import type { CheckboxValueType } from 'antd/es/checkbox/Group'; import React from 'react'; const onChange = (checkedValues: CheckboxValueType[]) => { console.log('checked = ', checkedValues); }; const App: React.FC = () => ( A B C D E ); export default App; ```