react-icons/md APIs
- MdClose
- MdSearch
- MdEmail
- MdLocationOn
- MdMenu
- MdKeyboardArrowRight
- MdCancel
- MdAdd
- MdPerson
- MdArrowForward
- MdPeople
- MdSettings
- MdCheckBox
- MdClear
- MdStar
- MdSmartphone
- MdFileUpload
- MdHome
- MdPause
- MdPlayArrow
- MdComputer
- MdChevronRight
- MdRateReview
- MdImage
- MdCheckCircle
- MdKeyboardArrowDown
- MdNavigateBefore
- MdNavigateNext
- MdDone
- MdCheck
- MdHelp
- MdPhoneIphone
- MdFlag
- MdAssignmentTurnedIn
- MdReceipt
- MdPrint
- MdKeyboardArrowLeft
- MdFilterList
- MdScreenShare
- MdArrowForwardIos
- MdDateRange
- MdDelete
- MdEdit
- MdArchive
- MdReplay
- MdLabel
- MdLoyalty
- MdInbox
- MdDesktopWindows
- MdDesktopMac
- MdLaptop
- MdKeyboard
- MdMemory
- MdSpeaker
- MdTv
- MdVideogameAsset
- MdWatch
- MdCameraswitch
- MdHeadset
- MdDeleteOutline
- MdSubdirectoryArrowRight
- MdRemoveRedEye
- MdVisibility
- MdVisibilityOff
- MdRotateLeft
- MdInfoOutline
- MdShoppingCart
- MdFavorite
- MdChatBubble
- MdEvent
- MdWebAsset
- MdLanguage
- MdForum
- MdPhone
- MdMoreVert
- MdFastRewind
- MdFastForward
- MdVolumeOff
- MdVolumeMute
- MdVolumeDown
- MdVolumeUp
- MdCallMade
- MdFileDownload
- MdPauseCircleFilled
- MdPlayCircleFilled
- MdCallReceived
- MdFullscreenExit
- MdFullscreen
- MdPictureInPictureAlt
- MdRemove
- MdErrorOutline
- MdFlipToBack
- MdLoop
- MdPictureInPicture
- MdToday
- MdAccessTime
- MdBusiness
- MdLink
- MdKeyboardTab
- MdPlace
- MdDashboard
- MdCardTravel
- MdBookmark
- MdContactMail
- MdVerified
- MdChevronLeft
- MdArrowDropDownCircle
- MdExpandMore
- MdRemoveFromQueue
- MdFindInPage
- MdCompareArrows
- MdPlaylistAddCheck
- MdArrowBack
- MdAccountCircle
- MdPhotoSizeSelectActual
OtherRelated APIs
react-icons/md#MdArrowBack JavaScript Examples
The following examples show how to use
react-icons/md#MdArrowBack.
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: QuantityField.js From plataforma-sabia with MIT License | 6 votes |
QuantityField = ({ defaultValue, labelPlacement, minValue, onChange }) => {
const [internalQuantity, setInternalQuantity] = useState(defaultValue);
useEffect(() => {
onChange(internalQuantity);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [internalQuantity]);
const handleDecreaseValue = () => {
if (internalQuantity > minValue) {
setInternalQuantity((prevValue) => prevValue - 1);
}
};
const handleIncreaseValue = () => {
setInternalQuantity((prevValue) => prevValue + 1);
};
return (
<InputFieldWrapper labelPlacement={labelPlacement}>
<InputLabel>Quantidade:</InputLabel>
<Row>
<Button
disabled={internalQuantity <= minValue}
aria-label="Decrease quantity"
type="button"
onClick={handleDecreaseValue}
>
<MdArrowBack fontSize={24} />
</Button>
<QuantityText>{internalQuantity}</QuantityText>
<Button aria-label="Increase quantity" type="button" onClick={handleIncreaseValue}>
<MdArrowForward fontSize={24} />
</Button>
</Row>
</InputFieldWrapper>
);
}