@fortawesome/free-solid-svg-icons APIs
- faTimes
- faCheck
- faTrash
- faCog
- faInfoCircle
- faPlus
- faSearch
- faSpinner
- faArrowLeft
- faCopy
- faChevronDown
- faExclamationTriangle
- faUser
- faEdit
- faBars
- faHome
- faCheckCircle
- faExclamationCircle
- faQuestionCircle
- faPlay
- faTrashAlt
- faArrowRight
- faChevronRight
- faChevronUp
- fas
- faEye
- faSignOutAlt
- faLink
- faPen
- faSync
- faEyeSlash
- faStar
- faChevronLeft
- faLock
- faDownload
- faCaretDown
- faClock
- IconDefinition
- faEllipsisV
- faHeart
- faCode
- faAngleDown
- faTimesCircle
- faGlobe
- faFilter
- faSave
- faBell
- faList
- faSortDown
- faSortUp
- faUsers
- faArrowDown
- faArrowUp
- faPause
- faUndo
- faMoon
- faWindowMaximize
- faSyncAlt
- faExternalLinkAlt
- faAngleUp
- faAngleLeft
- faUpload
- faClipboard
- faBook
- faComments
- faSquare
- faCheckDouble
- faPlusCircle
- faComment
- faRandom
- faStop
- faFolderPlus
- faCamera
- faBan
- faEnvelope
- faGavel
- faPalette
- faPlane
- faTasks
- faPencilAlt
- faExchangeAlt
- faMapMarkerAlt
- faAngleRight
- faSun
- faMicrophone
- faMicrophoneSlash
- faVideo
- faVideoSlash
- faFile
- faLanguage
- faCogs
- faUserEdit
- faUserPlus
- faMinus
- faFolderOpen
- faCircleNotch
- faUserAlt
- faCodeBranch
- faCube
- faLaptopCode
- faMap
- faChartArea
- faHistory
- faShare
- faCloudDownloadAlt
- faFileUpload
- faCalendarAlt
- faLightbulb
- faPaperPlane
- faPaintBrush
- faExclamation
- faAnchor
- faBomb
- faMusic
- faCompress
- faExpand
- faRegistered
- faWifi
- faDrawPolygon
- faPhone
- faCommentDots
- faVolumeUp
- faCaretUp
- faBug
- faUserCircle
- faWallet
- faFileContract
- faTag
- faSearchPlus
- faSort
- faKey
- faVolumeMute
- faPowerOff
- faBolt
- faRedoAlt
- faSortAmountDown
- faCloudUploadAlt
- faShapes
- faSortAmountUp
- faTools
- faFileCode
- faRedo
- faAlignLeft
- faUserFriends
- faBookOpen
- faChartBar
- faFileExport
- faFileImport
- faSadCry
- faRocket
- faLinkSlash
- faTh
- faLongArrowAltRight
- faTags
- faDog
- faTv
- faCartPlus
- faMicrochip
- faNetworkWired
- faCommentSlash
- faAddressBook
- faCalendar
- faToggleOff
- faToggleOn
- faUserClock
- faHourglass
- faQuestion
- faStamp
- faAddressCard
- faPoo
- faAppleAlt
- faBible
- faBone
- faCar
- faCat
- faChess
- faSkull
- faFeatherAlt
- faFire
- faWindowMinimize
- faReplyAll
- faSignInAlt
- faBold
- faItalic
- faUnderline
- faHeading
- faQuoteRight
- faListOl
- faListUl
- faLevelDownAlt
- faLevelUpAlt
- faUndoAlt
- faPlug
- faBullhorn
- faPlaneDeparture
- faSimCard
- faBrush
- faAngleDoubleDown
- faCoins
- faCompressArrowsAlt
- faDiceD6
- faNewspaper
- faMinimize
- faUpRightFromSquare
- faCubes
- faRetweet
- faHandPeace
- faSpaceShuttle
- faXmark
- faFileAudio
- faStopwatch
- faDragon
- faSortNumericDown
- faSortNumericDownAlt
- faArrowUpRightFromSquare
- faArrowDown19
- faArrowDown91
- faHashtag
- faRepeat
- faLaptop
- faCloud
- faPiggyBank
- faRunning
- faBiking
- faBicycle
- faShareAlt
- faRuler
- faVial
- faUserTimes
- faUserMinus
- faCalendarDay
- faStepBackward
- faStepForward
- faDotCircle
- faUserLock
- faUserCog
- faTrophy
- faShareSquare
- faHandPointRight
- faChartLine
- faUserShield
- faCheckSquare
- faSortAmountDownAlt
- faIdCard
- faUserSlash
- faCalculator
- faEllipsisH
- faRulerCombined
- faSoap
- faMousePointer
- faHandRock
- faDroplet
- faThumbtack
- faReply
- faLayerGroup
- faMask
- faWindowRestore
- faThLarge
- faDesktop
- faInfo
- faHandsHelping
- faKeyboard
- faChartPie
- faColumns
- faTable
- faTachometerAlt
- faClipboardList
- faHammer
- faLockOpen
- faCity
- faChessRook
- faMountain
- faCampground
- faUniversity
- faCrosshairs
- faWrench
- faArrowCircleLeft
- faIdCardAlt
- faCreditCard
- faDollarSign
- faIdBadge
- faSlidersH
- faEuroSign
- faPoundSign
- faSearchDollar
- faPlayCircle
- faStream
- faFilm
- faSmile
- faPhoneAlt
- faArrowsAltV
- faUserAltSlash
- faLongArrowAltLeft
- faHdd
- faUnlink
- faInbox
- faMagic
- faImage
- faCalendarCheck
- faUserCheck
- faFolder
- faThermometerEmpty
- faCut
- faPaste
- faCircle
- faMobile
- faClipboardCheck
- faSortAlphaUp
- faSortAlphaDown
- faRss
- faPaw
Other Related APIs
- react#useState
- react#useEffect
- history#createHashHistory
- electron#ipcRenderer
- @fortawesome/free-solid-svg-icons#faArrowLeft
- @fortawesome/free-solid-svg-icons#faCube
- @fortawesome/free-solid-svg-icons#faEdit
- @fortawesome/free-solid-svg-icons#faLock
- @fortawesome/free-solid-svg-icons#faPen
- @fortawesome/free-solid-svg-icons#faUser
- @fortawesome/free-solid-svg-icons#faWindowMaximize
- @fortawesome/free-solid-svg-icons#faTag
- @fortawesome/free-solid-svg-icons#faSquare
- @fortawesome/free-solid-svg-icons#faImage
- @fortawesome/free-solid-svg-icons#faCircle
- @fortawesome/free-solid-svg-icons#faMobile
- @fortawesome/react-fontawesome#FontAwesomeIcon
@fortawesome/free-solid-svg-icons#faInbox TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faInbox.
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: Register.tsx From MagicUI with Apache License 2.0 | 5 votes |
export default function Register() {
const [email, setEmail] = useState('');
const [nickname, setNickname] = useState('');
const [password, setPassword] = useState('');
const [error, setError] = useState(false);
const [source, setSource] = useState('');
useEffect(() => {
ipcRenderer.on('avatar-data', (event, args) => {
setSource(args.source);
});
}, []);
const handleSelectAvatar = () => {
Bridge.open(WidgetType.AVATAR);
};
const handleRegister = () => {
if (email && nickname && password) {
registerUser(source || defaultAvatar, email, nickname, password).then(res => {
if (res.err) {
setError(true);
}
history.push('/');
});
}
};
return (
<div className={style.register}>
<div className={style.avatar_wrapper}>
<EditableAvatar size={100} src={source || defaultAvatar} onClick={handleSelectAvatar}/>
</div>
<div className={style.input_wrapper}>
<div className={cls(style.input, style.email, error && style.error)}>
<span>
<FontAwesomeIcon icon={faInbox}/>
</span>
<input value={email} onChange={e => setEmail(e.target.value)} placeholder="email..."/>
</div>
<div className={cls(style.input, style.nickname)}>
<span>
<FontAwesomeIcon icon={faUser}/>
</span>
<input value={nickname} onChange={e => setNickname(e.target.value)} placeholder="nickname..."/>
</div>
<div className={cls(style.input, style.password)}>
<span>
<FontAwesomeIcon icon={faLock}/>
</span>
<input value={password} onChange={e => setPassword(e.target.value)} placeholder="password..."/>
</div>
</div>
<div className={style.register_btn}>
<button onClick={handleRegister}>
Register
</button>
</div>
<div className={style.login_btn}>
<button onClick={() => history.push('/')}>
<FontAwesomeIcon icon={faArrowLeft}/>
</button>
</div>
</div>
);
}