Download ant-design/components/grid/demo/offset.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/ant-design/components/grid/demo/offset.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/ant-design/components/grid/demo/offset.tsx
-
curl -L -o offset.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/ant-design/components/grid/demo/offset.tsx
498 Bytes
| import React from 'react'; | |
| import { Col, Row } from 'antd'; | |
| const App: React.FC = () => ( | |
| <> | |
| <Row> | |
| <Col span={8}>col-8</Col> | |
| <Col span={8} offset={8}> | |
| col-8 | |
| </Col> | |
| </Row> | |
| <Row> | |
| <Col span={6} offset={6}> | |
| col-6 col-offset-6 | |
| </Col> | |
| <Col span={6} offset={6}> | |
| col-6 col-offset-6 | |
| </Col> | |
| </Row> | |
| <Row> | |
| <Col span={12} offset={6}> | |
| col-12 col-offset-6 | |
| </Col> | |
| </Row> | |
| </> | |
| ); | |
| export default App; | |