import React from 'react'; import { Button, Flex, Segmented } from 'antd'; import type { FlexProps } from 'antd'; const boxStyle: React.CSSProperties = { width: '100%', height: 120, borderRadius: 6, border: '1px solid #40a9ff', }; const justifyOptions = [ 'flex-start', 'center', 'flex-end', 'space-between', 'space-around', 'space-evenly', ]; const alignOptions = ['flex-start', 'center', 'flex-end']; const App: React.FC = () => { const [justify, setJustify] = React.useState(justifyOptions[0]); const [alignItems, setAlignItems] = React.useState(alignOptions[0]); return (

Select justify :

Select align :

); }; export default App;