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#FiCircle JavaScript Examples
The following examples show how to use
react-icons/fi#FiCircle.
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: flip-editor-tools.js From idena-web with MIT License | 5 votes |
export function ColorPicker({visible, color, onChange}) {
const colorPickerRef = useRef()
const colors = [
['ffffff', 'd2d4d9e0', '96999edd', '53565cdd'],
['ff6666dd', 'ff60e7dd', 'a066ffdd', '578fffdd'],
['0cbdd0dd', '27d980dd', 'ffd763dd', 'ffa366dd'],
]
useClickOutside(colorPickerRef, () => {
onChange(color)
})
return (
<div
style={{
display: `${visible ? '' : 'none'}`,
}}
>
<Box css={position('relative')} ref={colorPickerRef}>
<Absolute top={0} right={rem(40)} zIndex={100}>
<Menu>
{colors.map((row, i) => (
<Flex key={i} css={{marginLeft: rem(10), marginRight: rem(10)}}>
{row.map((c, j) => {
const showColor = c === 'ffffff' ? '#d2d4d9' : `#${c}`
const circleStyle = {
padding: rem(1),
border: `${color === c ? '1px' : '0px'} solid ${showColor}`,
borderRadius: '50%',
fontSize: theme.fontSizes.large,
}
return (
<IconButton
key={`${j}${j}`}
icon={
c === 'ffffff' ? (
<FiCircle color={showColor} style={circleStyle} />
) : (
<FaCircle color={showColor} style={circleStyle} />
)
}
onClick={() => {
if (onChange) {
onChange(c)
}
}}
></IconButton>
)
})}
</Flex>
))}
</Menu>
</Absolute>
</Box>
</div>
)
}