@material-ui/icons APIs
- Close
- ExpandMore
- Add
- ExpandLess
- ArrowDropDown
- GitHub
- Check
- ArrowUpward
- ArrowDownward
- MoreVert
- Launch
- Info
- ChevronRight
- Edit
- Clear
- HelpOutline
- Delete
- Search
- Visibility
- VisibilityOff
- Settings
- ExitToApp
- Error
- InfoOutlined
- ArrowDropUp
- Brightness3
- CheckCircle
- KeyboardArrowRight
- KeyboardArrowDown
- KeyboardArrowUp
- Schedule
- ImageRounded
- Refresh
- KeyboardArrowLeft
- ArrowForward
- WarningRounded
- CloudDownload
- FullscreenExit
- Notifications
- ChevronLeft
- VolumeUp
- ArrowBack
- Work
- Person
- Favorite
- SearchOutlined
- AccountCircle
- Send
- Warning
- FirstPage
- LastPage
- Brightness5
- Telegram
- AccountBalanceWallet
- NotificationsNone
- AddCircle
- SwapHoriz
- AccessTime
- DoneOutlined
- ChevronRightRounded
- List
- ViewModule
- ThumbDownOutlined
- ThumbUpOutlined
- Forum
- CallMade
- PlayCircleOutline
- Cancel
- CancelRounded
- ArrowForwardIos
- LiveHelp
- AllInbox
- Face
- People
- SettingsPower
- NavigateNext
- NavigateBefore
- Save
- LayersClear
- Collections
- ThumbDown
- ThumbUp
- ZoomIn
- ZoomOut
- Fullscreen
- BarChart
- Image
- CenterFocusWeak
- VolumeDown
- Copyright
- DirectionsBoatRounded
- Create
- DeleteOutline
- DeleteOutlineOutlined
- CloudUploadOutlined
- PlayArrow
- Stop
- Done
- Undo
- FileCopy
- Menu
- Home
- Accessibility
- NotificationsActive
- Today
- Gavel
- AddAPhoto
- Dashboard
- Devices
- Event
- FitnessCenter
- Remove
- PinDrop
- Toc
- Group
- MenuBook
- NotListedLocation
- LocationOff
- Alarm
- BrightnessMedium
- Cloud
- ListAlt
- Pets
- GetApp
- ControlPoint
- FiberManualRecordRounded
- Flag
- FileCopyOutlined
- ExitToAppOutlined
- OpenInNew
- CheckCircleOutlined
- CancelOutlined
- PauseCircleOutline
- RemoveCircleOutline
- PlayCircleOutlineOutlined
- ArrowDownwardOutlined
- Brightness7
- OpenInNewSharp
- FilterCenterFocusSharp
- Web
- CheckRounded
- DeleteRounded
- FileCopyRounded
- MoreVertRounded
- SendRounded
- Cached
- CalendarToday
- FlashOn
- PictureAsPdf
- GridOn
- ArrowBackRounded
- PersonAddRounded
- KeyboardArrowUpRounded
- KeyboardArrowDownRounded
- KeyboardArrowLeftRounded
- KeyboardArrowRightRounded
- IndeterminateCheckBoxRounded
- FilterList
- Subject
- ExitToAppRounded
- CachedRounded
- FaceRounded
- Language
- SvgIconComponent
- MoreHoriz
- YouTube
- RestorePage
- NoteAdd
- ArrowBackIos
- Equalizer
- ImportExportRounded
- CloudDownloadRounded
- HelpOutlineRounded
- Star
- Business
- HouseOutlined
- ArrowRight
- ErrorOutline
- Lock
- FavoriteBorder
- MeetingRoom
- Mic
- MicOff
- Videocam
- VideocamOff
- VolumeOff
- ScreenShare
- Receipt
- Title
- ViewComfy
- ViewCompact
- FiberManualRecord
- RadioButtonUnchecked
Other Related APIs
@material-ui/icons#RadioButtonUnchecked TypeScript Examples
The following examples show how to use
@material-ui/icons#RadioButtonUnchecked.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: useWhiteboardArea.tsx From flect-chime-sdk-demo with Apache License 2.0 | 4 votes |
useWhiteboardArea = () => {
const { whiteboardClientState } = useAppState();
const [_lastUpdateTime, setLastUpdateTime] = useState(0);
const colorSelects = useMemo(() => {
return colors.map((c) => {
const selected = whiteboardClientState.whiteboardClient?.drawingMode === "DRAW" && whiteboardClientState.whiteboardClient.drawingStroke === c;
return (
<Tooltip title={c} key={c}>
<FiberManualRecord
style={{ color: c, border: selected ? "1px solid" : "" }}
onClick={() => {
if (whiteboardClientState.whiteboardClient) {
whiteboardClientState.whiteboardClient.drawingMode = "DRAW";
whiteboardClientState.whiteboardClient.drawingStroke = c;
}
setLastUpdateTime(new Date().getTime());
}}
/>
</Tooltip>
);
});
}, [whiteboardClientState.whiteboardClient?.drawingMode, whiteboardClientState.whiteboardClient?.drawingStroke]);
const eraseSelect = useMemo(() => {
const selected = whiteboardClientState.whiteboardClient?.drawingMode === "ERASE";
return (
<Tooltip title="erase">
<RadioButtonUnchecked
style={{ color: "black", border: selected ? "1px solid" : "" }}
onClick={() => {
if (whiteboardClientState.whiteboardClient) {
whiteboardClientState.whiteboardClient.drawingMode = "ERASE";
}
setLastUpdateTime(new Date().getTime());
}}
/>
</Tooltip>
);
}, [whiteboardClientState.whiteboardClient?.drawingMode, whiteboardClientState.whiteboardClient?.drawingStroke]);
const lineWidthSelect = useMemo(() => {
return (
<div style={{ display: "flex" }}>
linewidth
<Slider
value={whiteboardClientState.whiteboardClient?.lineWidth}
onChange={(e, v) => {
if (whiteboardClientState.whiteboardClient) {
whiteboardClientState.whiteboardClient.lineWidth = Array.isArray(v) ? v[0] : v;
}
setLastUpdateTime(new Date().getTime());
}}
min={1}
max={20}
step={1}
/>
</div>
);
}, [whiteboardClientState.whiteboardClient?.lineWidth]);
const clearButton = useMemo(() => {
return (
<Button
variant="outlined"
size="small"
color="primary"
onClick={() => {
const drawingData: DrawingData = {
drawingCmd: "CLEAR",
startXR: 0,
startYR: 0,
endXR: 0,
endYR: 0,
stroke: "black",
lineWidth: 2,
};
if (whiteboardClientState.whiteboardClient) {
whiteboardClientState.whiteboardClient.addDrawingData(drawingData);
} else {
console.log("[WhiteboardPanel] addDrawingData is undefined");
}
setLastUpdateTime(new Date().getTime());
}}
>
Clear
</Button>
);
}, []);
const whiteboardArea = useMemo(() => {
return (
<div id="whiteboardArea" style={{ display: "flex", flexDirection: "column", width: "100%", maxHeight: "100%", wordBreak: "break-all", overflow: "auto", background: "#ffffffaa" }}>
<div>{colorSelects}</div>
<div>{eraseSelect}</div>
<div>{lineWidthSelect}</div>
<div>{clearButton}</div>
</div>
);
}, [colorSelects, eraseSelect, lineWidthSelect, clearButton]);
return { whiteboardArea };
}