import * as React from 'react'; import Box from '@mui/joy/Box'; import Radio from '@mui/joy/Radio'; import RadioGroup from '@mui/joy/RadioGroup'; import Typography from '@mui/joy/Typography'; export default function ExampleSegmentedControls() { const [justify, setJustify] = React.useState('flex-start'); return ( Justify: setJustify(event.target.value)} sx={{ minHeight: 48, padding: '4px', borderRadius: '12px', bgcolor: 'neutral.softBg', '--RadioGroup-gap': '4px', '--Radio-actionRadius': '8px', }} > {['flex-start', 'center', 'flex-end'].map((item) => ( ({ sx: { ...(checked && { bgcolor: 'background.surface', boxShadow: 'sm', '&:hover': { bgcolor: 'background.surface', }, }), }, }), }} /> ))} ); }