ant-design/components/flex/demo/wrap.tsx

15 lines
285 B
TypeScript
Raw Normal View History

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