You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.0 KiB
68 lines
2.0 KiB
import React from 'react';
|
|
import { Col, Divider, Row } from 'antd';
|
|
|
|
const style: React.CSSProperties = { background: '#0092ff', padding: '8px 0' };
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Divider orientation="left">Horizontal</Divider>
|
|
<Row gutter={16}>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
</Row>
|
|
<Divider orientation="left">Responsive</Divider>
|
|
<Row gutter={{ xs: 8, sm: 16, md: 24, lg: 32 }}>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
</Row>
|
|
<Divider orientation="left">Vertical</Divider>
|
|
<Row gutter={[16, 24]}>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
<Col className="gutter-row" span={6}>
|
|
<div style={style}>col-6</div>
|
|
</Col>
|
|
</Row>
|
|
</>
|
|
);
|
|
|
|
export default App;
|
|
|