@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
- react#useEffect
- react#useRef
- react#useCallback
- react#forwardRef
- react#Fragment
- @fortawesome/react-fontawesome#FontAwesomeIcon
- @fortawesome/free-solid-svg-icons#faCopy
- @fortawesome/free-solid-svg-icons#faTrashAlt
- @fortawesome/free-solid-svg-icons#faTimesCircle
- @fortawesome/free-solid-svg-icons#faUndo
- @fortawesome/free-solid-svg-icons#faArrowUp
- @fortawesome/free-solid-svg-icons#faRedo
@fortawesome/free-solid-svg-icons#faArrowsAlt JavaScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faArrowsAlt.
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: UnfilledCFs.jsx From signdocs with MIT License | 6 votes |
![]() ![]() |
UnfilledCF = forwardRef(({ onRemove, children }, dragRef) => {
return (
<div className="content-field-description">
<div className="drag-handle" ref={dragRef}>
<FontAwesomeIcon icon={faArrowsAlt} color="inherit" />
</div>
<button className="close flat" type="button" onClick={onRemove}>
<FontAwesomeIcon icon={faTimesCircle} color="inherit" />
</button>
{children}
</div>
);
})
Example #2
Source File: RenderNode.js From saltcorn with MIT License | 4 votes |
![]() ![]() |
RenderNode = ({ render }) => {
const { id } = useNode();
const { actions, query, isActive } = useEditor((state) => ({
isActive: state.nodes[id].events.selected,
}));
const {
isHover,
dom,
name,
moveable,
deletable,
connectors: { drag },
parent,
} = useNode((node) => ({
isHover: node.events.hovered,
dom: node.dom,
name: node.data.custom.displayName || node.data.displayName,
moveable: query.node(node.id).isDraggable(),
deletable: query.node(node.id).isDeletable(),
parent: node.data.parent,
props: node.data.props,
}));
const currentRef = useRef();
const getPos = useCallback((dom) => {
const { top, left, bottom, height, width, right } = dom
? dom.getBoundingClientRect()
: { top: 0, left: 0, bottom: 0, right: 0, height: 0, width: 0 };
return {
top: `${top > 0 ? top : bottom}px`,
left: `${left}px`,
topn: top,
leftn: left,
height,
width,
right,
bottom,
};
}, []);
const scroll = useCallback(() => {
const { current: currentDOM } = currentRef;
if (!currentDOM) return;
const { top, left } = getPos(dom);
currentDOM.style.top = top;
currentDOM.style.left = left;
}, [dom, getPos]);
useEffect(() => {
document
.getElementById("builder-main-canvas")
.addEventListener("scroll", scroll);
document.addEventListener("scroll", scroll);
return () => {
document
.getElementById("builder-main-canvas")
.removeEventListener("scroll", scroll);
document.removeEventListener("scroll", scroll);
};
}, [scroll]);
/**
* @returns {void}
*/
const duplicate = () => {
const {
data: { parent },
} = query.node(id).get();
const siblings = query.node(parent).childNodes();
const sibIx = siblings.findIndex((sib) => sib === id);
const elem = recursivelyCloneToElems(query)(id);
actions.addNodeTree(
query.parseReactElement(elem).toNodeTree(),
parent || "ROOT",
sibIx + 1
);
};
return (
<>
{(isActive || isHover) &&
id !== "ROOT" &&
!(name === "Column" && !isActive)
? ReactDOM.createPortal(
<div
ref={currentRef}
className={`selected-indicator ${
isActive ? "activeind" : "hoverind"
} px-1 text-white`}
style={{
left: getPos(dom).left,
top: getPos(dom).top,
zIndex: 9999,
}}
>
<div className="dispname me-3">{name}</div>{" "}
{moveable && isActive && (
<button
className="btn btn-link btn-builder-move p-0"
ref={drag}
>
<FontAwesomeIcon icon={faArrowsAlt} className="me-2" />
</button>
)}
{isActive && parent && parent !== "ROOT" ? (
<FontAwesomeIcon
icon={faArrowUp}
className="me-2"
onClick={() => {
actions.selectNode(parent);
}}
/>
) : null}
{deletable && isActive
? [
<FontAwesomeIcon
key={1}
icon={faCopy}
onClick={duplicate}
className="me-2"
/>,
<FontAwesomeIcon
key={2}
icon={faTrashAlt}
className="me-2"
onMouseDown={(e) => {
e.stopPropagation();
actions.delete(id);
setTimeout(() => actions.selectNode(parent), 0);
}}
/>,
]
: null}
</div>,
document.querySelector("#builder-main-canvas")
)
: null}
{render}
</>
);
}