Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
31 lines
961 B
TypeScript
31 lines
961 B
TypeScript
import * as React from 'react';
|
|
import Button from '@mui/joy/Button';
|
|
import IconButton from '@mui/joy/IconButton';
|
|
import ToggleButtonGroup from '@mui/joy/ToggleButtonGroup';
|
|
import FormatBoldIcon from '@mui/icons-material/FormatBold';
|
|
import FormatItalicIcon from '@mui/icons-material/FormatItalic';
|
|
import FormatUnderlinedIcon from '@mui/icons-material/FormatUnderlined';
|
|
|
|
export default function ExclusiveSelection() {
|
|
const [value, setValue] = React.useState<string | null>('default');
|
|
return (
|
|
<ToggleButtonGroup
|
|
value={value}
|
|
onChange={(event, newValue) => {
|
|
setValue(newValue);
|
|
}}
|
|
>
|
|
<Button value="default">Default</Button>
|
|
<IconButton value="bold">
|
|
<FormatBoldIcon />
|
|
</IconButton>
|
|
<IconButton value="italic">
|
|
<FormatItalicIcon />
|
|
</IconButton>
|
|
<IconButton value="underlined">
|
|
<FormatUnderlinedIcon />
|
|
</IconButton>
|
|
</ToggleButtonGroup>
|
|
);
|
|
}
|