react-icons/md APIs
- MdCheck
- MdAdd
- MdRefresh
- MdCreditCard
- MdLink
- MdClose
- MdInfoOutline
- MdDone
- MdNotificationsActive
- MdContentCopy
- MdMenu
- MdInfo
- MdWarning
- MdError
- MdAttachment
- MdOutlineEditOff
- MdOutlineAttachMoney
- MdOutlineLightMode
- MdOutlineDarkMode
- MdToday
- MdOutlinePreview
- MdOutlineModeEdit
- MdOutlinePeopleAlt
- MdCall
- MdTimeline
- MdOutlineDone
- MdSwapHoriz
- MdAssignment
- MdExplicit
- MdImage
- MdAddAPhoto
- MdBusiness
- MdVerifiedUser
- MdAddCircle
- MdLabel
- MdNavigateNext
- MdNotificationsOff
- MdSecurity
- MdNewReleases
- MdSettings
- MdVibration
- MdStayPrimaryPortrait
- MdCloudDownload
- MdCalendarToday
- MdFormatListNumbered
- MdContactPage
- MdDownload
- MdHelp
- MdOutlineBugReport
- MdQuestionAnswer
- MdTranslate
- MdWeb
- MdLaptop
- MdChevronRight
- MdChevronLeft
- MdZoomIn
- MdOpenInNew
- MdMenuOpen
- MdSearch
- MdFolderOpen
- MdArrowForward
- MdMoreHoriz
- MdClear
- MdDialpad
- MdMoneyOff
- MdVisibility
- MdVisibilityOff
- MdUpgrade
- MdSubject
- MdFullscreen
- MdRadar
- MdWbShade
- MdPublic
- MdGpsFixed
- MdGpsNotFixed
- MdGpsOff
- MdFileDownload
- MdFlag
- MdNotifications
- MdOutlineWarning
- MdOutlineAccountTree
- MdCode
- MdRemove
- MdSort
- MdArrowDropDown
- MdOutlineHome
- MdOutlineEmail
- MdExpandMore
- MdFormatAlignLeft
- MdFormatAlignRight
- MdFormatAlignCenter
- MdFormatAlignJustify
- MdBolt
- MdPlayCircleFilled
- MdHorizontalSplit
- MdSpaceDashboard
- MdComputer
- MdDangerous
- MdArrowBackIos
- MdColorLens
- MdSettingsEthernet
- MdDateRange
- MdPlace
- MdPlaylistAdd
- MdDns
- MdTextFields
- MdTitle
- MdVpnKey
- MdMemory
Other Related APIs
react-icons/md#MdWarning TypeScript Examples
The following examples show how to use
react-icons/md#MdWarning.
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: index.tsx From nlw06-letmeask with MIT License | 6 votes |
Toast = (props: ToastTypes) => {
return (
<Styled.Container className={`${props.type} ${props.className}`}>
<p>
{props.type==="info" && <MdInfo size={"2.4rem"}/>}
{props.type==="warning" && <MdWarning size={"2.4rem"}/>}
{props.type==="error" && <MdError size={"2.4rem"}/>}
{props.children}
</p>
</Styled.Container>
)
}
Example #2
Source File: index.tsx From slice-machine with Apache License 2.0 | 6 votes |
getIconAccordingToasterType = ({
type,
}: {
type: TypeOptions;
}): JSX.Element | undefined => {
switch (type) {
case toast.TYPE.INFO:
return <MdError />;
case toast.TYPE.ERROR:
return <MdDangerous />;
case toast.TYPE.SUCCESS:
return <MdDone />;
case toast.TYPE.WARNING:
return <MdWarning />;
}
}