2023-05-25 10:19:56 +08:00
|
|
|
import React from 'react';
|
2023-07-28 16:17:43 +08:00
|
|
|
import { Collapse, Divider } from 'antd';
|
2023-01-21 18:45:09 +08:00
|
|
|
|
|
|
|
const text = `
|
|
|
|
A dog is a type of domesticated animal.
|
|
|
|
Known for its loyalty and faithfulness,
|
|
|
|
it can be found as a welcome guest in many households across the world.
|
|
|
|
`;
|
|
|
|
|
|
|
|
const App: React.FC = () => (
|
|
|
|
<>
|
|
|
|
<Divider orientation="left">Default Size</Divider>
|
2023-05-25 10:19:56 +08:00
|
|
|
<Collapse
|
|
|
|
items={[{ key: '1', label: 'This is default size panel header', children: <p>{text}</p> }]}
|
|
|
|
/>
|
2023-01-21 18:45:09 +08:00
|
|
|
<Divider orientation="left">Small Size</Divider>
|
2023-05-25 10:19:56 +08:00
|
|
|
<Collapse
|
|
|
|
size="small"
|
|
|
|
items={[{ key: '1', label: 'This is small size panel header', children: <p>{text}</p> }]}
|
|
|
|
/>
|
2023-01-21 18:45:09 +08:00
|
|
|
<Divider orientation="left">Large Size</Divider>
|
2023-05-25 10:19:56 +08:00
|
|
|
<Collapse
|
|
|
|
size="large"
|
|
|
|
items={[{ key: '1', label: 'This is large size panel header', children: <p>{text}</p> }]}
|
|
|
|
/>
|
2023-01-21 18:45:09 +08:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|