@fortawesome/free-solid-svg-icons APIs
- faTimes
- faSearch
- faPlus
- faBars
- faCheck
- faEnvelope
- fas
- faTrash
- faArrowLeft
- faEdit
- faChevronDown
- faCheckCircle
- faHeart
- faExternalLinkAlt
- faHome
- faSpinner
- faArrowRight
- faEye
- faSignOutAlt
- faUsers
- faTrashAlt
- faTimesCircle
- faMapMarkerAlt
- faUser
- faChevronRight
- faAngleRight
- faCopy
- faExclamationTriangle
- faDownload
- faCog
- faAngleDown
- faUpload
- faLink
- faShoppingCart
- faCogs
- faInfoCircle
- faQuestionCircle
- faMoon
- faStar
- faGlobe
- faUserPlus
- faAngleUp
- faArrowDown
- faPhone
- faPlay
- faPencilAlt
- faCode
- faCalendar
- faSyncAlt
- faArrowUp
- faAngleLeft
- faEllipsisV
- faEyeSlash
- faChevronLeft
- faFile
- faChevronUp
- faClock
- faSun
- faCalendarAlt
- faSync
- faPaperPlane
- faQuestion
- faDollarSign
- faSignInAlt
- faList
- faFilter
- faComment
- faLock
- faUserCircle
- faShoppingBag
- faBell
- faFileAlt
- faBullhorn
- faMinus
- faPaperclip
- faCaretDown
- faHandHoldingUsd
- faHandshake
- faThumbsUp
- faChartPie
- faCodeBranch
- faTh
- faFolder
- faLaptop
- faTag
- faBook
- faCircleNotch
- faWrench
- faHistory
- faBan
- faExclamationCircle
- faPen
- faPause
- faMinusCircle
- faAlignLeft
- faAngleDoubleLeft
- faAngleDoubleRight
- faCalendarDay
- faLaptopCode
- faFire
- faPalette
- faMailBulk
- faRedoAlt
- faSave
- faEraser
- faBriefcase
- faFolderOpen
- faCompass
- faLightbulb
- faBox
- faVideo
- faLocationArrow
- faChartBar
- faExchangeAlt
- faTable
- faTachometerAlt
- faImages
- faShare
- faShareAlt
- faPlusSquare
- faShareSquare
- faVolumeMute
- faVolumeUp
- faFolderPlus
- faImage
- faCalculator
- faDatabase
- faRandom
- faMapPin
- faMapMarker
- faTabletAlt
- faUserFriends
- faAward
- faCalendarCheck
- faCoffee
- faGreaterThan
- faArrowCircleRight
- faFlask
- faStarHalfAlt
- faCompressAlt
- faExpandAlt
- faSortUp
- faSortDown
- faEllipsisH
- faMobileAlt
- faCross
- faShoppingBasket
- faCommentDots
- faBuilding
- faSearchDollar
- faMoneyCheck
- faExclamation
- faCloudDownloadAlt
- faChartLine
- faBookmark
- faMap
- faInbox
- faUnlink
- faUndo
- faPlusCircle
- faPlug
- faTools
- faClipboard
- faThLarge
- faComments
- faRedo
- faAddressBook
- faArrowsAlt
- faMicrochip
- faCubes
- faIdBadge
- faChartArea
- faBolt
- faMedal
- faTrophy
- faUserEdit
- faChalkboardTeacher
- faGraduationCap
- faUserGraduate
- faPercent
- faHandPointer
- faUndoAlt
- faFillDrip
- faFileUpload
- faVirus
- faGlobeAmericas
- faCalendarWeek
- faCalendarTimes
- faPhoneAlt
- faFilePdf
- faClipboardList
- faEnvelopeSquare
- faLessThan
- faGripLinesVertical
- faStepBackward
- faStepForward
- faCamera
- faBellSlash
- faArrowCircleDown
- faHeadSideCough
- faIndustry
- faLongArrowAltRight
- faDrawPolygon
- faMicrophone
- faMicrophoneSlash
- faWindowMinimize
- faWindowMaximize
- faCircle
- faVideoSlash
- faFileDownload
- faCheckSquare
- faServer
- faEquals
- faCreditCard
- faCartPlus
- faSearchPlus
- faPlaneDeparture
- faLanguage
- faInfo
- faRss
- faSnowflake
- faFan
- faThumbsDown
- faStop
- faGamepad
- faArrowAltCircleLeft
- faArrowAltCircleRight
- faAtom
- faCaretSquareLeft
- faCaretSquareRight
- faUserSlash
- faMoneyBill
- faCloudMoon
- faCar
- faHandPaper
- faMoneyBillWaveAlt
- faBorderAll
- faHotel
- faHatCowboySide
- faDog
- faCat
- faShip
- faFrog
- faTrain
- faFaucet
- faArrowAltCircleUp
- faStream
- faArrowsAltV
- faExternalLinkSquareAlt
- faLockOpen
- faClipboardCheck
- faFileSignature
- faMagnet
- faPencilRuler
- faRulerCombined
- faMusic
- faCommentAlt
- faFilm
- faCut
- faChevronCircleDown
- faRssSquare
- faTree
- faPrint
- faStamp
- faEllipsis
- faRefresh
- faForward
- faAdjust
- faScroll
- faRobot
- faCaretRight
- faFileImport
- faSatelliteDish
- faSlidersH
- faHourglassHalf
- faAsterisk
- faBlog
- faSignal
- faRoad
- faSuperscript
- faTags
- faFlagUsa
- faGlobeEurope
- faDesktop
- faArrowCircleLeft
- faPoll
- faFileInvoice
- faMagic
- faAt
- faNetworkWired
- faBookReader
- faDonate
- faInfinity
- faUserNinja
OtherRelated APIs
@fortawesome/free-solid-svg-icons#faArrowCircleDown JavaScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faArrowCircleDown.
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: DisplayTable.js From covid-19-tracker with MIT License | 4 votes |
DisplayTable = ({ tableData, isDarkMode, districtLevel }) => {
let result;
try {
result = tableData.map((dataItem) => {
let newObject = {};
for (let [key, value] of Object.entries(dataItem)) {
if (
key === "lastupdatedtime" ||
key === "state" ||
key === "statecode" ||
key === "statenotes"
) {
newObject[key] = value;
} else {
newObject[key] = Number(value);
}
}
return newObject;
});
} catch (err) {}
const getDistrictData = (statecode) => {
try {
const stateWithDist = districtLevel.find(
(state) => state.statecode === statecode
);
const districtData = stateWithDist.districtData.map((dist) => (
<tr className="district-tr" key={dist.district}>
<td className="district-td" style={lightText}>
{dist.district}
</td>
<td className="district-td" style={lightText}>
{dist.confirmed}
{dist.delta.confirmed > 0 && (
<span className="delta-confirmed">[{dist.delta.confirmed}] </span>
)}
</td>
<td className="district-td" style={lightText}>
{dist.active}
</td>
<td className="district-td" style={lightText}>
{dist.recovered}
{dist.delta.recovered > 0 && (
<span className="delta-recovered">[{dist.delta.recovered}] </span>
)}
</td>
<td className="district-td" style={lightText}>
{dist.deceased}
{dist.delta.deceased > 0 && (
<span className="delta-deceased">[{dist.delta.deceased}] </span>
)}
</td>
</tr>
));
const markup = (
<>
<tr className="district-tr" key={`${statecode} Dist`}>
<th className="tableHead districtHead">District</th>
<th className="tableHead districtHead">Confirmed</th>
<th className="tableHead districtHead">Active</th>
<th className="tableHead districtHead">Recovered</th>
<th className="tableHead districtHead">Deceased</th>
</tr>
{districtData}
<tr className="spacer-bottom"></tr>
</>
);
return markup;
} catch (err) {}
};
const { items, requestSort, sortConfig } = useSortableData(result);
const [displayDist, setDisplayDist] = useState(false);
const [distId, setDistId] = useState("");
const lightText = {
color: isDarkMode && "rgba(255,255,255,.75)",
};
const getClassNamesFor = (name) => {
if (!sortConfig) {
return;
}
return sortConfig.key === name ? sortConfig.direction : undefined;
};
const toggleDistView = (id) => {
setDistId(id);
setDisplayDist(!displayDist);
};
return (
<table>
<caption
style={{
marginTop: "1rem",
marginBottom: "4rem",
}}
>
Expand to get district wise data
</caption>
<thead>
<tr>
<th className="tableHead">
<button
type="button"
onClick={() => requestSort("state")}
className={`tableHead-Button ${getClassNamesFor("state")}`}
>
Name
</button>
</th>
<th className="tableHead">
<button
type="button"
onClick={() => requestSort("confirmed")}
className={`tableHead-Button ${getClassNamesFor("confirmed")}`}
>
Confirmed
</button>
</th>
<th className="tableHead">
<button
type="button"
onClick={() => requestSort("active")}
className={`tableHead-Button ${getClassNamesFor("active")}`}
>
Active
</button>
</th>
<th className="tableHead">
<button
type="button"
onClick={() => requestSort("recovered")}
className={`tableHead-Button ${getClassNamesFor("recovered")}`}
>
Recovered
</button>
</th>
<th className="tableHead">
<button
type="button"
onClick={() => requestSort("deaths")}
className={`tableHead-Button ${getClassNamesFor("deaths")}`}
>
Deceased
</button>
</th>
</tr>
</thead>
<tbody>
{items.map((item) => (
<React.Fragment key={item.statecode}>
<tr className="state-tr">
<td className="state-td" style={lightText}>
<FontAwesomeIcon
icon={
distId === item.statecode && displayDist
? faArrowCircleDown
: faArrowCircleRight
}
className=""
onClick={() => toggleDistView(item.statecode)}
/>{" "}
{item.state}
</td>
<td className="state-td" style={lightText}>
{item.confirmed}
{item.deltaconfirmed > 0 && (
<span className="delta-confirmed">
[{item.deltaconfirmed}]{" "}
</span>
)}
</td>
<td className="state-td" style={lightText}>
{item.active}
</td>
<td className="state-td" style={lightText}>
{item.recovered}
{item.deltarecovered > 0 && (
<span className="delta-recovered">
[{item.deltarecovered}]{" "}
</span>
)}
</td>
<td className="state-td" style={lightText}>
{item.deaths}
{item.deltadeaths > 0 && (
<span className="delta-deceased">[{item.deltadeaths}] </span>
)}
</td>
</tr>
{distId === item.statecode && displayDist
? getDistrictData(item.statecode)
: null}
</React.Fragment>
))}
</tbody>
</table>
);
}