@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#createRef
- react-redux#connect
- @fortawesome/free-solid-svg-icons#faCheck
- @fortawesome/free-solid-svg-icons#faExclamationTriangle
- @fortawesome/free-solid-svg-icons#faPen
- @fortawesome/free-solid-svg-icons#faStamp
- @fortawesome/free-solid-svg-icons#faPaintBrush
- @fortawesome/free-solid-svg-icons#faGavel
- @fortawesome/react-fontawesome#FontAwesomeIcon
- react-color#SketchPicker
- react-color#ColorResult
- react-color#RGBColor
@fortawesome/free-solid-svg-icons#faAddressCard TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faAddressCard.
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: AvatarUI.tsx From avalon.ist with MIT License | 4 votes |
render() {
const fontSize = Math.min(this.props.tableWidth * 0.04, this.props.fontSize);
return (
<>
<div
id="Avatar-UI"
style={{
top: this.props.avatarPosition[0] + 'px',
left: this.props.avatarPosition[1] + 'px',
display: this.props.avatarShow ? undefined : 'none',
}}
onMouseOver={this.renderButtonsTrue}
onMouseLeave={this.renderButtonsFalse}
>
<div
id="ave-graphics"
style={{
width: this.props.avatarSize + 'px',
height: this.props.avatarSize + 'px',
maxHeight: Math.max(this.props.tableWidth * 0.08, 45) + 'px',
maxWidth: Math.max(this.props.tableWidth * 0.08, 45) + 'px',
opacity: this.props.afk ? '0.5' : '1',
}}
>
<div
id="ave-background"
className={
this.background[this.state.currentBackground] +
' ' +
((this.state.avatarSelected && this.props.isPickable) || (this.props.highlighted) ? 'picked' : '')
}
/>
<div
className={
'ave tooltip ' +
(this.props.killed ? 'killed ' : '') +
(this.props.isPickable ? 'pickable' : 'not-pickable')
}
style={{
backgroundImage:
'url(' +
(this.props.isRes ? this.props.resUrl : this.props.spyUrl) +
')',
}}
onClick={this.pickPlayer}
>
{this.props.isPickable ? (
<span className="tooltip-text">Click on this player to pick them</span>
) : null}
</div>
{this.props.hasClaimed ? (
<div className="claim">
<FontAwesomeIcon icon={faExclamationTriangle} />
</div>
) : null}
{this.props.killed ? <div className="ave-sword" /> : null}
{this.props.onMission ? (
<div className="ave-shield" ref={this.shieldLocation}>
{this.props.shieldShow ? (
<div
style={{
transform: 'scale(' + this.props.shieldScale + ')',
top: this.props.shieldPosition[0] + 'px',
left: this.props.shieldPosition[1] + 'px',
}}
className="ave-shield-display"
/>
) : null}
</div>
) : null}
{this.props.leader ? <div className="ave-flag" /> : null}
{this.props.vote > -1 ? (
<div className={'ave-vote-bubble ' + (this.props.vote === 1)} />
) : null}
{this.state.renderButtons ? (
<div className="ave-buttons">
<button onClick={this.setBackgroundColor} className="tooltip">
<span className="tooltip-text">Mark this player's allegiance</span>
<FontAwesomeIcon icon={faStamp} />
</button>
<button onClick={this.toggleHighlightChat} className="tooltip">
<span className="tooltip-text">
Highlight this player's chat messages
</span>
<FontAwesomeIcon
style={{
backgroundColor: this.state.highlightChat
? this.toHtmlHex(this.state.currentHighlight)
: '',
}}
icon={faPen}
/>
</button>
<button onClick={this.showColorPicker} className="tooltip">
<span className="tooltip-text">
Change this player's highlight color
</span>
<FontAwesomeIcon icon={faPaintBrush} />
</button>
</div>
) : null}
</div>
<p
className={'ave-username ' + (this.props.isMe ? 'me' : '')}
style={{
width: Math.max(this.props.tableWidth * 0.15, 40) + 'px',
fontSize: Math.max(fontSize, 10) + 'px',
}}
>
{this.props.card ? <FontAwesomeIcon icon={faAddressCard} /> : null}{' '}
{this.props.hammer ? <FontAwesomeIcon icon={faGavel} /> : null}{' '}
{this.props.username}
</p>
<p
className={'ave-role ' + this.props.isRes}
style={{
opacity:
this.props.role !== 'Spy?' && this.props.role !== 'Resistance?'
? '1'
: '0',
fontSize: Math.max(fontSize * 0.8, 8) + 'px',
}}
>
{this.props.role}
</p>
</div>
{this.state.renderPicker ? (
<div className="hl-picker">
<AvalonScrollbars>
<div className="hl-stuff">
<p>CHANGE HIGHLIGHT COLOR</p>
<SketchPicker
color={this.state.currentHighlight}
onChange={this.handleHighlight}
/>
<button onClick={this.hideColorPicker}>
<FontAwesomeIcon icon={faCheck} />
</button>
</div>
</AvalonScrollbars>
</div>
) : null}
</>
);
}