@material-ui/icons APIs
- ExpandMore
- Delete
- Close
- Visibility
- VisibilityOff
- Check
- Add
- Edit
- Search
- ExpandLess
- Settings
- Person
- Info
- Clear
- ExitToApp
- ArrowDropDown
- Home
- GitHub
- Warning
- ArrowBack
- SearchOutlined
- Done
- LocationOn
- PlayArrow
- Apps
- Brightness4
- Brightness7
- Description
- KeyboardArrowDown
- KeyboardArrowLeft
- KeyboardArrowRight
- MoreVert
- LocationCity
- Map
- Image
- AccountCircle
- InfoOutlined
- Create
- Block
- Replay
- AddCircle
- HomeRounded
- GetApp
- ChevronLeft
- ChevronRight
- CloudDownload
- CheckCircleOutline
- Send
- LockOpen
- Cancel
- NavigateNext
- AccountBox
- DragIndicator
- FavoriteBorderOutlined
- AccessTime
- DoneAll
- CheckCircle
- CropFree
- LockOutlined
- Undo
- Dashboard
- People
- PhotoLibrary
- HomeOutlined
- Group
- ArrowDropUp
- Remove
- ArrowUpward
- Save
- ArrowForward
- AttachFile
- Headset
- SignalCellularAlt
- ArrowForwardIos
- PlayCircleFilled
- AccessAlarm
- Adjust
- BarChart
- CloseRounded
- PlayArrowOutlined
- ImageRounded
- MenuBookRounded
- RefreshRounded
- HourglassEmptyOutlined
- Announcement
- Ballot
- QuestionAnswerOutlined
- CloudUpload
- SkipNext
- ArrowRightAlt
- MoreHoriz
- FileCopy
- MenuBook
- Language
- AlternateEmail
- FolderOpen
- Lock
- Pets
- AddCircleRounded
- ExploreRounded
- WbSunnyRounded
- Brightness2Rounded
- DonutLargeRounded
- AssistantRounded
- AccountCircleRounded
- ExitToAppRounded
- VpnKey
- MailOutline
- Smartphone
- DeleteForever
- LanguageOutlined
- Colorize
- SignalCellularConnectedNoInternet2Bar
- SignalCellularConnectedNoInternet0Bar
- SignalCellular4Bar
- DeleteOutline
- NewReleases
- LocalOffer
- Assessment
- Place
- TrendingDown
- ShoppingCart
- Stop
- RotateLeft
- Menu
- Flag
- Forum
- GroupSharp
- InsertEmoticon
- NotificationsActive
- PhoneIphone
- AllInbox
- Comment
- Photo
- PlaylistAddCheck
- CloudUploadRounded
- ExpandMoreOutlined
- History
- PersonOutlineOutlined
- ArrowForwardIosRounded
- ArrowBackIosRounded
- AssignmentOutlined
- VerticalAlignCenterOutlined
- CalendarTodayOutlined
- Error
- PlaylistPlay
- MusicNoteTwoTone
- Portrait
- ExploreOutlined
- DeleteRounded
- EditRounded
- SaveRounded
- CreateNewFolder
- MeetingRoom
- MenuOpenRounded
- MenuRounded
- DateRange
- CallEnd
- Assignment
- KeyboardBackspace
- BluetoothSearching
- CameraAlt
- PlaylistAdd
- Favorite
- Bluetooth
- OpenInBrowser
- Loop
- FileCopyOutlined
- NavigateBefore
- MergeType
- Dvr
- PersonOutline
- PlayCircleFilledWhiteOutlined
- StoreMallDirectoryOutlined
- SupervisedUserCircleOutlined
- MonetizationOn
- OpenInNew
- ArrowDownward
- AddBox
- FilterList
- FirstPage
- LastPage
- ViewColumn
- Notifications
- DriveEta
- LocalTaxi
- Redo
- AccountTree
- TextFields
- SaveAlt
- ThumbDown
- ThumbUp
- LocalPhone
- VolumeUp
- VolumeDown
- Translate
- AddCircleOutlined
- RemoveCircleOutlined
- Router
- RemoveRedEye
- Chat
- Mood
- Mic
OtherRelated APIs
@material-ui/icons#Cancel JavaScript Examples
The following examples show how to use
@material-ui/icons#Cancel.
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: SearchTextField.js From voicemail-for-amazon-connect with Apache License 2.0 | 6 votes |
render() {
let classes = this.props.classes;
return (
<Grid container direction={"row"} alignItems={"flex-end"} alignContent={"center"}>
<Search className={classes.search}/>
<Grid item>
<TextField
className={classes.textField}
placeholder={"Search"}
name="search"
value={this.state.searchValue}
onChange={this.handleSearchChange}
/>
</Grid>
{this.props.showClearButton ?
<Cancel className={classes.clearSearch} onClick={() => {
this.updateSearch("")
}}/> :
null
}
</Grid>
)
}
Example #2
Source File: DefibrillatorPopupContent.js From AED-Map with MIT License | 5 votes |
DefibrillatorPopupContent = ({ id, hidePopup }) => {
const classes = useStyle();
const [currDef, setCurrDef] = useState(null);
const formatData = (key, def) => {
if (key === 'actual_date') {
return new Date(def[key]).toLocaleDateString(
'uk-UA',
{
year: 'numeric',
month: '2-digit',
day: '2-digit'
}
);
}
if (key === 'phone') {
return def[key].join(', ');
}
return def[key];
};
useEffect(() => {
const fetchData = async () => {
setCurrDef(null);
const res = await fetchSingleDefById(id);
const { defibrillator } = res.data;
setCurrDef(defibrillator);
};
fetchData();
return () => {
currDefCancelToken.cancel();
};
}, [id]);
return currDef ? (
<div className={classes.popupContainer}>
{currDef.images[0] && (
<img
title={currDef.images[0].filename}
className={classes.imagePreview}
src={`${BASE_URL}/api/images/${currDef.images[0].filename}`}
alt={currDef.images[0].filename}
/>
)}
{Object.keys(titles).map(
key =>
currDef[key] && (
<p key={key}>
<span className={classes.title}>
{titles[key]}
</span>
<br />
{formatData(key, currDef)}
</p>
)
)}
<Cancel
className={classes.closeBtn}
onClick={hidePopup}
/>
<ModalPhoto images={currDef.images} />
</div>
) : (
<Loader />
);
}