mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +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;
|