@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#useCallback
- react#useContext
- @fortawesome/free-solid-svg-icons#faSquare
- @fortawesome/react-fontawesome#FontAwesomeIcon
- @mui/material#Button
- @mui/material#CardContent
- @mui/material#Typography
- @mui/material#Grid
- @mui/material#Chip
- @mui/material#Collapse
- @mui/icons-material#ExpandMore
@fortawesome/free-solid-svg-icons#faCheckSquare TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faCheckSquare.
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: EnemyEditor.tsx From genshin-optimizer with MIT License | 5 votes |
export function EnemyEditor({ bsProps = { xs: 12, md: 6 } }: { bsProps?: object }) {
const { data, character: { enemyOverride }, characterDispatch } = useContext(DataContext)
const defaultVal = 10
const eLvl = enemyOverride.enemyLevel ?? data.get(input.lvl).value
const eDefRed = enemyOverride.enemyDefIgn_ ?? 0
const eDefIgn = enemyOverride.enemyDefRed_ ?? 0
return <Grid container spacing={1}>
<Grid item {...bsProps}>
<Button fullWidth sx={{ height: "100%" }} size="small" component="a" color="warning" href="https://genshin-impact.fandom.com/wiki/Resistance#Base_Enemy_Resistances" target="_blank" rel="noreferrer">
To get the specific resistance values of enemies, please visit the wiki.
</Button>
</Grid>
<Grid item {...bsProps}>
<StatInput
sx={{ bgcolor: t => t.palette.contentLight.main, width: "100%" }}
name={<b>{KeyMap.get("enemyLevel")}</b>}
value={eLvl}
placeholder={KeyMap.getStr("enemyLevel")}
defaultValue={data.get(input.lvl).value}
onValueChange={value => characterDispatch({ type: "enemyOverride", statKey: "enemyLevel", value })}
onReset={() => characterDispatch({ type: "enemyOverride", statKey: "enemyLevel", value: undefined })}
/>
</Grid>
{allElementsWithPhy.map(eleKey => {
const statKey = `${eleKey}_enemyRes_`
const val = enemyOverride[statKey]
const elementImmunity = val === Number.MAX_VALUE
return <Grid item key={eleKey} {...bsProps}>
<StatInput
sx={{ bgcolor: t => t.palette.contentLight.main, width: "100%" }}
name={<ColorText color={eleKey}><b>{KeyMap.get(statKey)}</b></ColorText>}
value={val ? (elementImmunity ? Infinity : val) : 10}
placeholder={elementImmunity ? "Immune " : KeyMap.getStr(statKey)}
defaultValue={defaultVal}
onValueChange={value => characterDispatch({ type: "enemyOverride", statKey, value })}
disabled={elementImmunity}
percent
>
<Button color={eleKey} onClick={() => characterDispatch({ type: "enemyOverride", statKey, value: elementImmunity ? defaultVal : Number.MAX_VALUE })} >
<FontAwesomeIcon icon={elementImmunity ? faCheckSquare : faSquare} className="fa-fw" /> Immunity
</Button>
</StatInput>
</Grid>
})}
<Grid item {...bsProps}>
<StatInput
sx={{ bgcolor: t => t.palette.contentLight.main, width: "100%" }}
name={<b>{KeyMap.get("enemyDefIgn_")}</b>}
value={eDefRed}
placeholder={KeyMap.getStr("enemyDefIgn_")}
defaultValue={0}
onValueChange={value => characterDispatch({ type: "enemyOverride", statKey: "enemyDefIgn_", value })}
percent
/>
</Grid>
<Grid item {...bsProps}>
<StatInput
sx={{ bgcolor: t => t.palette.contentLight.main, width: "100%" }}
name={<b>{KeyMap.get("enemyDefRed_")}</b>}
value={eDefIgn}
placeholder={KeyMap.getStr("enemyDefRed_")}
defaultValue={0}
onValueChange={value => characterDispatch({ type: "enemyOverride", statKey: "enemyDefRed_", value })}
percent
/>
</Grid>
<Grid item xs={12}>
<small>Note: Genshin Impact halves resistance shred values below 0%. For the sake of calculations enter the RAW value and GO will do the rest. (e.g. 10% - 20% = -10%)</small>
</Grid>
</Grid>
}