import CheckIcon from '@mui/icons-material/Check'; import Box from '@mui/joy/Box'; import Chip from '@mui/joy/Chip'; import Radio from '@mui/joy/Radio'; import RadioGroup from '@mui/joy/RadioGroup'; import Typography from '@mui/joy/Typography'; import * as React from 'react'; export default function RadioChip() { const [selected, setSelected] = React.useState(''); return (
Best Movie {[ 'Star trek', 'Batman', 'Spider man', 'Eternals', 'Shang chi', 'Jungle cruise', 'No time to die', 'Thor', 'The hulk', ].map((name) => { const checked = selected === name; return ( } > { if (event.target.checked) { setSelected(name); } }} /> ); })}
); }