react-icons/fa APIs
- FaTwitter
- FaGithub
- FaSearch
- FaDiscord
- FaEye
- FaInstagram
- FaPlus
- FaFacebookF
- FaTrash
- FaGlobe
- FaUsers
- FaEdit
- FaListUl
- FaWhatsapp
- FaApple
- FaTimes
- FaMoon
- FaSun
- FaYoutube
- FaInfoCircle
- FaSave
- FaEyeSlash
- FaCheck
- FaRegCheckCircle
- FaExternalLinkAlt
- FaChevronUp
- FaChevronDown
- FaUser
- FaThumbsUp
- FaGoogle
- FaChevronLeft
- FaTrashAlt
- FaCheckCircle
- FaExclamationCircle
- FaCode
- FaFilter
- FaLinkedinIn
- FaHome
- FaAngleRight
- FaAngleLeft
- FaCopy
- FaArrowRight
- FaThumbsDown
- FaTimesCircle
- FaMapMarkedAlt
- FaNetworkWired
- FaFacebook
- FaMedal
- FaQuestionCircle
- FaAppStoreIos
- FaRegNewspaper
- FaLinkedin
- FaAward
- FaSpinner
- FaBell
- FaLink
- FaCog
- FaCaretDown
- FaCaretLeft
- FaCaretRight
- FaRegQuestionCircle
- FaSignInAlt
- FaRegCircle
- FaPlayCircle
- FaBook
- FaMinus
- FaRegClock
- FaRegTimesCircle
- FaUserClock
- FaClipboardCheck
- FaTelegram
- FaToolbox
- FaCalendarAlt
- FaChevronCircleDown
- FaChevronCircleUp
- FaChevronCircleRight
- FaCogs
- FaDownload
- FaSitemap
- FaTrophy
- FaGripVertical
- FaFlagCheckered
- FaMapMarkerAlt
- FaChrome
- FaRegStickyNote
- FaRegSun
- FaTags
- FaGetPocket
- FaRegEdit
- FaRobot
- FaDev
- FaQuora
- FaGraduationCap
- FaClipboard
- FaVine
- FaMicroscope
- FaReact
- FaVuejs
- FaPalette
- FaPen
- FaSmile
- FaPaperPlane
- FaImage
- FaUserPlus
- FaAnchor
- FaCaretUp
- FaRss
- FaRegLightbulb
- FaStar
- FaSignOutAlt
- FaUserMinus
- FaEnvelopeOpenText
- FaPencilAlt
- FaExclamation
- FaUnlock
- FaLock
- FaSlack
- FaUserCircle
- FaEnvelope
- FaKey
- FaRegStar
- FaWrench
- FaMarkdown
- FaArrowCircleLeft
- FaArrowCircleRight
- FaScroll
- FaUserFriends
- FaBolt
- FaExpand
- FaLocationArrow
- FaStopCircle
- FaHandHolding
- FaPhotoVideo
- FaShareAlt
- FaVoicemail
- FaGithubAlt
- FaLifeRing
- FaSyncAlt
- FaSoundcloud
- FaSpotify
- FaHistory
- FaBloggerB
- FaDrawPolygon
- FaHandPaper
- FaHandPointer
- FaPhone
- FaList
- FaMailBulk
- FaHourglass
- FaMediumM
- FaPlay
- FaGift
- FaChevronRight
- FaLongArrowAltRight
- FaMedium
- FaWindowClose
- FaEllipsisH
- FaVolumeUp
- FaVolumeMute
- FaKeyboard
- FaHammer
- FaFileImport
- FaListOl
- FaSquare
- FaFillDrip
- FaUserLock
- FaRegPlusSquare
- FaRegFile
- FaSlash
- FaCloudUploadAlt
- FaBackspace
- FaAngleDoubleRight
- FaAngleDoubleLeft
- FaGlasses
- FaPause
- FaCheckSquare
- FaComment
- FaPrint
- FaShareSquare
- FaChartBar
- FaMagic
- FaBicycle
- FaCat
- FaDirections
- FaGlobeAfrica
- FaMountain
- FaUpload
- FaLightbulb
- FaDocker
- FaTwitterSquare
- FaGlobeAmericas
- FaLinux
- FaFile
- FaDesktop
- FaFacebookMessenger
- FaWpforms
- FaBomb
- FaBars
- FaTabletAlt
- FaMemory
- FaCalendarDay
- Fa500Px
- FaAdobe
- FaAdversal
- FaAirbnb
- FaAlipay
- FaAmazon
- FaAmazonPay
- FaBehanceSquare
- FaInstagramSquare
- FaLaugh
- FaMagento
- FaOpera
- FaYinYang
Other Related APIs
react-icons/fa#FaEnvelope TypeScript Examples
The following examples show how to use
react-icons/fa#FaEnvelope.
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: SignUp.tsx From hub with Apache License 2.0 | 4 votes |
SignUp = (props: Props) => {
const form = useRef<HTMLFormElement>(null);
const [apiError, setApiError] = useState<string | null>(null);
const [activeSignUp, setActiveSignUp] = useState(false);
const [successNewAccount, setSuccessNewAccount] = useState(false);
const [isLoading, setIsLoading] = useState<Loading>({ status: false });
// Clean API error when form is focused after validation
const cleanApiError = () => {
if (!isNull(apiError)) {
setApiError(null);
}
};
const onCloseModal = () => {
props.setOpenSignUp(false);
};
const submitForm = () => {
if (form.current) {
form.current.dispatchEvent(new Event('submit', { cancelable: true, bubbles: true }));
}
};
const closeButton = (
<button
className="btn btn-sm btn-outline-secondary"
type="button"
disabled={isLoading.status}
onClick={submitForm}
aria-label="Sign up"
>
<div className="d-flex flex-row align-items-center text-uppercase">
{!isUndefined(isLoading.type) && isLoading.type === 'log' ? (
<>
<span className="spinner-grow spinner-grow-sm" role="status" aria-hidden="true" />
<span className="ms-2">Signing up...</span>
</>
) : (
<>
<FaEnvelope className="me-2" />
<>Sign up</>
</>
)}
</div>
</button>
);
return (
<Modal
header={<div className={`h3 m-2 flex-grow-1 text-truncate ${styles.title}`}>Sign up</div>}
modalClassName={styles.modal}
open={props.openSignUp}
onClose={onCloseModal}
error={apiError}
cleanError={cleanApiError}
closeButton={!successNewAccount && activeSignUp ? closeButton : undefined}
>
{activeSignUp ? (
<CreateAnAccount
ref={form}
setApiError={setApiError}
apiError={apiError}
success={successNewAccount}
setSuccess={setSuccessNewAccount}
isLoading={isLoading}
setIsLoading={setIsLoading}
/>
) : (
<div className="my-auto">
<div className="h5 mb-5 text-center">Create your account using your email</div>
<div className="d-grid">
<button
type="button"
onClick={() => setActiveSignUp(true)}
className="btn btn-outline-secondary"
disabled={isLoading.status}
aria-label="Open sign up form"
>
<div className="d-flex align-items-center">
<FaEnvelope />
<div className="flex-grow-1 text-center">Sign up</div>
</div>
</button>
</div>
<OAuth separatorClassName="my-5" isLoading={isLoading} setIsLoading={setIsLoading} />
</div>
)}
</Modal>
);
}