react-icons/fi APIs
- FiArrowLeft
- FiInfo
- FiLogIn
- FiCheckCircle
- FiUpload
- FiClock
- FiX
- FiPlus
- FiArrowRight
- FiSearch
- FiXCircle
- FiUser
- FiChevronRight
- FiAlertCircle
- FiTrash
- FiSettings
- FiExternalLink
- FiChevronDown
- FiChevronLeft
- FiPower
- FiMenu
- FiGithub
- FiGrid
- FiChevronUp
- FiCheck
- FiCopy
- FiMail
- FiLock
- FiCamera
- FiHome
- FiLogOut
- FiThumbsUp
- FiWifi
- FiArrowUp
- FiDownload
- FiEdit2
- FiMoon
- FiCode
- FiSave
- FiPlusCircle
- FiTrash2
- FiBell
- FiMonitor
- FiMessageCircle
- FiCircle
- FiArrowUpRight
- FiAlertTriangle
- FiBarChart2
- FiThumbsDown
- FiPlayCircle
- FiZap
- FiCheckSquare
- FiEdit3
- FiPlusSquare
- FiPackage
- FiUsers
- FiMinus
- FiEdit
- FiMoreVertical
- FiSun
- FiActivity
- FiLayout
- FiAlignLeft
- FiArrowRightCircle
- FiSliders
- FiHeart
- FiBluetooth
- FiSmartphone
- FiNavigation
- FiHelpCircle
- FiXOctagon
- FiZoomIn
- FiZoomOut
- FiWifiOff
- FiFeather
- FiCalendar
- FiPercent
- FiTriangle
- FiArchive
- FiBookOpen
- FiCrosshair
- FiLifeBuoy
- FiGitMerge
- FiRepeat
- FiServer
- FiStar
- FiUserMinus
- FiHexagon
- FiTwitter
- FiFileText
- FiImage
- FiLoader
- FiBook
- FiDatabase
- FiMinusCircle
- FiRefreshCcw
- FiMaximize2
- FiSquare
- FiFilm
- FiUserCheck
- FiFrown
- FiTool
- FiFolder
- FiTruck
- FiArrowDown
- FiType
- FiVideo
- FiPlay
- FiRadio
- FiVolume2
- FiBox
- FiDollarSign
- FiCreditCard
- FiHardDrive
- FiEye
- FiAperture
- FiTag
- FiFastForward
- FiLayers
- FiMapPin
- FiMessageSquare
- FiRss
- FiTv
- FiCpu
- FiGitBranch
- FiClipboard
- FiFilePlus
- FiFile
- FiRefreshCw
- FiPaperclip
- FiHash
- FiLink2
Other Related APIs
- react#useState
- react#ReactNode
- react#useRef
- react#KeyboardEvent
- react#MutableRefObject
- react-i18next#useTranslation
- react-icons/fi#FiLogOut
- react-icons/fi#FiCheck
- react-icons/fi#FiAlertTriangle
- react-icons/fi#FiUpload
- react-icons/fi#FiChevronLeft
- react-icons/fi#FiLogIn
- react-icons/fi#FiMoreVertical
- react-icons/fi#FiFilm
- i18next#TFunction
- react-icons/hi#HiOutlineTranslate
react-icons/fi#FiUserCheck TypeScript Examples
The following examples show how to use
react-icons/fi#FiUserCheck.
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: UserBox.tsx From tobira with Apache License 2.0 | 5 votes |
LoggedIn: React.FC<LoggedInProps> = ({ user, menu }) => {
const { t } = useTranslation();
const ref = useRef(null);
return (
<div ref={ref} css={{ position: "relative" }}>
<div onClick={menu.toggle} css={{
height: "100%",
padding: "8px 0",
alignSelf: "center",
display: "flex",
cursor: "pointer",
"&:hover": {
"& div": { opacity: 1 },
},
}}>
{/* Show name of user on large screens */}
<div css={{
maxWidth: 240,
display: "flex",
flexDirection: "column",
justifyContent: "center",
lineHeight: 1.3,
paddingRight: 16,
opacity: 0.75,
[`@media (max-width: ${BREAKPOINT_MEDIUM}px)`]: {
display: "none",
},
}}>
<div css={{ fontSize: 12, color: "var(--grey40)" }}>
{t("user.logged-in-as")}
</div>
<div css={{
flex: "0 1 auto",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
overflow: "hidden",
}}>{user.displayName}</div>
</div>
{/* Show icon */}
<ActionIcon title={t("user.settings")}>
<FiUserCheck css={{ "& > polyline": { stroke: "var(--happy-color-dark)" } }}/>
</ActionIcon>
</div>
{/* Show menu if it is opened */}
{menu.isOpen && <Menu close={menu.close} container={ref} />}
</div>
);
}