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-icons/fi#FiAperture TypeScript Examples
The following examples show how to use
react-icons/fi#FiAperture.
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: ContextMenu.tsx From meshtastic-web with GNU General Public License v3.0 | 5 votes |
ContextMenu = ({
items,
children,
}: ContextMenuProps): JSX.Element => {
const [visible, setVisible] = useState(false);
const [position, setPosition] = useState({ x: 0, y: 0 });
return (
<div
className="h-full"
onContextMenu={(e): void => {
e.preventDefault();
setVisible(false);
const newPosition = {
x: e.pageX,
y: e.pageY,
};
setPosition(newPosition);
setVisible(true);
}}
onClick={(): void => {
setVisible(false);
}}
>
{children}
{visible && (
<div
style={{ top: position.y, left: position.x }}
className="fixed z-50 w-60 gap-2 divide-y divide-gray-300 rounded-md border border-gray-400 font-medium drop-shadow-md backdrop-blur-xl dark:divide-gray-600 dark:border-gray-600 dark:text-gray-400"
>
{items}
<ContextItem title="Menu item" icon={<FiActivity />} />
<ContextItem title="Menu item 2" icon={<FiAperture />} />
<ContextItem
title="Menu item 3 with a very long name that should wrap"
icon={<FiTag />}
/>
</div>
)}
</div>
);
}