mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 04:18:28 +08:00
24 lines
634 B
TypeScript
24 lines
634 B
TypeScript
|
import React from 'react';
|
||
|
import { Card } from 'antd';
|
||
|
|
||
|
const gridStyle: React.CSSProperties = {
|
||
|
width: '25%',
|
||
|
textAlign: 'center',
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Card title="Card Title">
|
||
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||
|
<Card.Grid hoverable={false} style={gridStyle}>
|
||
|
Content
|
||
|
</Card.Grid>
|
||
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||
|
</Card>
|
||
|
);
|
||
|
|
||
|
export default App;
|