ant-design/components/flex/demo/wrap.tsx
2024-04-12 12:10:38 +08:00

15 lines
278 B
TypeScript

import React from 'react';
import { Button, Flex } from 'antd';
const Demo: React.FC = () => (
<Flex wrap gap="small">
{Array.from({ length: 24 }, (_, i) => (
<Button key={i} type="primary">
Button
</Button>
))}
</Flex>
);
export default Demo;