react-icons/fi APIs
- FiTrash2
- FiArrowLeft
- FiUsers
- FiLogIn
- FiPower
- FiX
- FiSun
- FiSearch
- FiPlus
- FiMail
- FiMoon
- FiEdit
- FiChevronRight
- FiShare2
- FiCheckCircle
- FiChevronLeft
- FiLink
- FiLogOut
- FiArrowRight
- FiMenu
- FiGlobe
- FiCheck
- FiSend
- FiFile
- FiInfo
- FiCopy
- FiDownload
- FiTrash
- FiExternalLink
- FiClock
- FiEye
- FiAlertTriangle
- FiShare
- FiChevronDown
- FiMap
- FiLock
- FiHome
- FiPackage
- FiTwitter
- FiGrid
- FiPlusCircle
- FiXCircle
- FiCrosshair
- FiUserPlus
- FiMusic
- FiCode
- FiBookOpen
- FiCodepen
- FiEyeOff
- FiFolderPlus
- FiCoffee
- FiImage
- FiUpload
- FiArchive
- FiCalendar
- FiUser
- FiWind
- FiRewind
- FiMinus
- FiBell
- FiChevronUp
- FiHeart
- FiStar
- FiHelpCircle
- FiFileText
- FiAlertOctagon
- FiTag
- FiTerminal
- FiArrowLeftCircle
- FiArrowRightCircle
- FiBook
- FiPhoneCall
- FiLink2
- FiGithub
- FiLinkedin
- FiYoutube
- FiMoreVertical
- FiPauseCircle
- FiPlayCircle
- FiFolder
- FiVideo
- FiLoader
- FiHardDrive
- FiUnlock
- FiPhone
- FiAtSign
- FiCircle
- FiPlay
- FiDownloadCloud
- FiMessageCircle
- FiBookmark
- FiAperture
- FiPhoneForwarded
- FiShuffle
- FiWatch
- FiCloud
- FiCloudDrizzle
- FiCloudRain
- FiCloudLightning
- FiCloudSnow
- FiShoppingCart
- FiFilter
- FiCornerUpLeft
- FiShoppingBag
- FiCornerDownRight
- FiEdit3
- FiMessageSquare
- FiInbox
- FiTool
- FiMinusCircle
OtherRelated APIs
react-icons/fi#FiUser JavaScript Examples
The following examples show how to use
react-icons/fi#FiUser.
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: index.js From plataforma-sabia with MIT License | 5 votes |
IdeaCard = ({ hit: { id, title, description, keywords, user, created_at } }) => {
const [toggleShowMore, setToggleShowMore] = useState(false);
const handleToggleShowMore = () => {
setToggleShowMore((previousState) => !previousState);
};
return (
<S.Container key={id}>
<S.Title>{title}</S.Title>
<S.Description>
{toggleShowMore ? description : limitTextChar(description, MAX_DESC_LENGTH)}
</S.Description>
<S.PillWrapper>
{keywords?.map((keyword) => (
<S.Pill key={keyword}>{keyword}</S.Pill>
))}
</S.PillWrapper>
{toggleShowMore && (
<S.IconsWrapper>
{created_at && (
<div>
<FiCalendar fontSize={16} />
<span>
{stringToLocaleDate(created_at, {
day: 'numeric',
month: 'numeric',
year: 'numeric',
})}
</span>
</div>
)}
{user?.full_name && (
<div>
<FiUser fontSize={16} />
<span>{user?.full_name}</span>
</div>
)}
</S.IconsWrapper>
)}
<S.Button onClick={handleToggleShowMore}>
Mostrar {toggleShowMore ? 'menos' : 'mais'}
</S.Button>
</S.Container>
);
}