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#FiFilePlus TypeScript Examples
The following examples show how to use
react-icons/fi#FiFilePlus.
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: FileBrowser.tsx From meshtastic-web with GNU General Public License v3.0 | 5 votes |
FileBrowser = (): JSX.Element => {
const connectionParams = useAppSelector(
(state) => state.app.connectionParams,
);
const appState = useAppSelector((state) => state.app);
const meshtasticState = useAppSelector((state) => state.meshtastic);
const { data } = useSWR<Files>(
`${connectionParams.HTTP.tls ? 'https' : 'http'}://${
connectionParams.HTTP.address
}${
meshtasticState.radio.hardware.firmwareVersion.includes('1.2')
? '/json/spiffs/browse/static'
: '/json/fs/browse/static'
}`,
fetcher,
);
return (
<div className="flex h-full p-4">
<Card
title="File Browser"
actions={<Button icon={<FiFilePlus />}>Upload File</Button>}
className="flex-grow flex-col"
>
<div className="h-full px-4">
<AnimatePresence>
{(!data || data?.data.files.length === 0) && (
<div className="flex h-full w-full">
<m.img
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
className="m-auto h-64 w-64 text-green-500"
src={appState.darkMode ? '/Files_Dark.svg' : '/Files.svg'}
/>
</div>
)}
</AnimatePresence>
{data?.data.files.map((file) => (
<div
key={file.name}
className="flex h-10 w-full border-b border-gray-400 px-4 font-medium dark:border-gray-600 dark:text-white"
>
<div className="my-auto w-1/3">
<a
target="_blank"
rel="noopener noreferrer"
href={`${connectionParams.HTTP.tls ? 'https' : 'http'}://${
connectionParams.HTTP.address
}/${file.name.replace('static/', '')}`}
>
{file.name.replace('static/', '').replace('.gz', '')}
</a>
</div>
<div className="my-auto w-1/3"></div>
</div>
))}
</div>
</Card>
</div>
);
}