@fortawesome/free-solid-svg-icons APIs
- faTimes
- faCheck
- faTrash
- faCog
- faInfoCircle
- faPlus
- faSearch
- faSpinner
- faArrowLeft
- faCopy
- faChevronDown
- faExclamationTriangle
- faUser
- faEdit
- faBars
- faHome
- faCheckCircle
- faExclamationCircle
- faQuestionCircle
- faPlay
- faTrashAlt
- faArrowRight
- faChevronRight
- faChevronUp
- fas
- faEye
- faSignOutAlt
- faLink
- faPen
- faSync
- faEyeSlash
- faStar
- faChevronLeft
- faLock
- faDownload
- faCaretDown
- faClock
- IconDefinition
- faEllipsisV
- faHeart
- faCode
- faAngleDown
- faTimesCircle
- faGlobe
- faFilter
- faSave
- faBell
- faList
- faSortDown
- faSortUp
- faUsers
- faArrowDown
- faArrowUp
- faPause
- faUndo
- faMoon
- faWindowMaximize
- faSyncAlt
- faExternalLinkAlt
- faAngleUp
- faAngleLeft
- faUpload
- faClipboard
- faBook
- faComments
- faSquare
- faCheckDouble
- faPlusCircle
- faComment
- faRandom
- faStop
- faFolderPlus
- faCamera
- faBan
- faEnvelope
- faGavel
- faPalette
- faPlane
- faTasks
- faPencilAlt
- faExchangeAlt
- faMapMarkerAlt
- faAngleRight
- faSun
- faMicrophone
- faMicrophoneSlash
- faVideo
- faVideoSlash
- faFile
- faLanguage
- faCogs
- faUserEdit
- faUserPlus
- faMinus
- faFolderOpen
- faCircleNotch
- faUserAlt
- faCodeBranch
- faCube
- faLaptopCode
- faMap
- faChartArea
- faHistory
- faShare
- faCloudDownloadAlt
- faFileUpload
- faCalendarAlt
- faLightbulb
- faPaperPlane
- faPaintBrush
- faExclamation
- faAnchor
- faBomb
- faMusic
- faCompress
- faExpand
- faRegistered
- faWifi
- faDrawPolygon
- faPhone
- faCommentDots
- faVolumeUp
- faCaretUp
- faBug
- faUserCircle
- faWallet
- faFileContract
- faTag
- faSearchPlus
- faSort
- faKey
- faVolumeMute
- faPowerOff
- faBolt
- faRedoAlt
- faSortAmountDown
- faCloudUploadAlt
- faShapes
- faSortAmountUp
- faTools
- faFileCode
- faRedo
- faAlignLeft
- faUserFriends
- faBookOpen
- faChartBar
- faFileExport
- faFileImport
- faSadCry
- faRocket
- faLinkSlash
- faTh
- faLongArrowAltRight
- faTags
- faDog
- faTv
- faCartPlus
- faMicrochip
- faNetworkWired
- faCommentSlash
- faAddressBook
- faCalendar
- faToggleOff
- faToggleOn
- faUserClock
- faHourglass
- faQuestion
- faStamp
- faAddressCard
- faPoo
- faAppleAlt
- faBible
- faBone
- faCar
- faCat
- faChess
- faSkull
- faFeatherAlt
- faFire
- faWindowMinimize
- faReplyAll
- faSignInAlt
- faBold
- faItalic
- faUnderline
- faHeading
- faQuoteRight
- faListOl
- faListUl
- faLevelDownAlt
- faLevelUpAlt
- faUndoAlt
- faPlug
- faBullhorn
- faPlaneDeparture
- faSimCard
- faBrush
- faAngleDoubleDown
- faCoins
- faCompressArrowsAlt
- faDiceD6
- faNewspaper
- faMinimize
- faUpRightFromSquare
- faCubes
- faRetweet
- faHandPeace
- faSpaceShuttle
- faXmark
- faFileAudio
- faStopwatch
- faDragon
- faSortNumericDown
- faSortNumericDownAlt
- faArrowUpRightFromSquare
- faArrowDown19
- faArrowDown91
- faHashtag
- faRepeat
- faLaptop
- faCloud
- faPiggyBank
- faRunning
- faBiking
- faBicycle
- faShareAlt
- faRuler
- faVial
- faUserTimes
- faUserMinus
- faCalendarDay
- faStepBackward
- faStepForward
- faDotCircle
- faUserLock
- faUserCog
- faTrophy
- faShareSquare
- faHandPointRight
- faChartLine
- faUserShield
- faCheckSquare
- faSortAmountDownAlt
- faIdCard
- faUserSlash
- faCalculator
- faEllipsisH
- faRulerCombined
- faSoap
- faMousePointer
- faHandRock
- faDroplet
- faThumbtack
- faReply
- faLayerGroup
- faMask
- faWindowRestore
- faThLarge
- faDesktop
- faInfo
- faHandsHelping
- faKeyboard
- faChartPie
- faColumns
- faTable
- faTachometerAlt
- faClipboardList
- faHammer
- faLockOpen
- faCity
- faChessRook
- faMountain
- faCampground
- faUniversity
- faCrosshairs
- faWrench
- faArrowCircleLeft
- faIdCardAlt
- faCreditCard
- faDollarSign
- faIdBadge
- faSlidersH
- faEuroSign
- faPoundSign
- faSearchDollar
- faPlayCircle
- faStream
- faFilm
- faSmile
- faPhoneAlt
- faArrowsAltV
- faUserAltSlash
- faLongArrowAltLeft
- faHdd
- faUnlink
- faInbox
- faMagic
- faImage
- faCalendarCheck
- faUserCheck
- faFolder
- faThermometerEmpty
- faCut
- faPaste
- faCircle
- faMobile
- faClipboardCheck
- faSortAlphaUp
- faSortAlphaDown
- faRss
- faPaw
Other Related APIs
- @fortawesome/free-solid-svg-icons#faBell
- @fortawesome/free-solid-svg-icons#faTimes
- @fortawesome/free-solid-svg-icons#faQuestionCircle
- @fortawesome/free-solid-svg-icons#faPause
- @fortawesome/free-solid-svg-icons#faPlay
- @fortawesome/free-solid-svg-icons#faChevronLeft
- @fortawesome/free-solid-svg-icons#faClock
- @fortawesome/free-solid-svg-icons#faPalette
- @fortawesome/free-solid-svg-icons#faPoo
- @fortawesome/free-solid-svg-icons#faAnchor
- @fortawesome/free-solid-svg-icons#faMoon
- @fortawesome/free-solid-svg-icons#faAppleAlt
- @fortawesome/free-solid-svg-icons#faBible
- @fortawesome/free-solid-svg-icons#faBomb
- @fortawesome/free-solid-svg-icons#faBone
- @fortawesome/free-solid-svg-icons#faCar
- @fortawesome/free-solid-svg-icons#faCat
- @fortawesome/free-solid-svg-icons#faChess
- @fortawesome/free-solid-svg-icons#faSkull
- @fortawesome/react-fontawesome#FontAwesomeIcon
- @fortawesome/fontawesome-svg-core#library
@fortawesome/free-solid-svg-icons#faUndo TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faUndo.
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: IconLibrary.ts From react-memory-game with MIT License | 6 votes |
library.add(
faChevronLeft,
faPlay,
faPause,
faUndo,
faClock,
faQuestionCircle,
faTimes,
faPalette,
// Icons for the game
faPoo,
faAnchor,
faMoon,
faAppleAlt,
faBell,
faBible,
faBomb,
faBone,
faCar,
faCat,
faChess,
faSkull,
faFeatherAlt,
faFire,
faHeart,
faMusic,
)
Example #2
Source File: RoomIdHeader.tsx From longwave with MIT License | 6 votes |
function RoomMenu() {
const { t, i18n } = useTranslation();
const { setGameState, setPlayerName } = useContext(GameModelContext);
const menuItemProps = {
style: { margin: 8, cursor: "pointer" },
tabIndex: 0,
};
return (
<div>
<div
{...menuItemProps}
onClick={() => setGameState(InitialGameState(i18n.language))}
>
<FontAwesomeIcon icon={faUndo} /> {t("roomidheader.reset_room")}
</div>
<div {...menuItemProps} onClick={() => setPlayerName("")}>
<FontAwesomeIcon icon={faUserEdit} /> {t("roomidheader.change_name")}
</div>
</div>
);
}
Example #3
Source File: EditTools.tsx From MagicUI with Apache License 2.0 | 5 votes |
export default function EditTools(props: IEditToolsProps) {
const cpnState = useSelector((state: IStoreState) => state.component);
const editToolsState = useSelector((state: IStoreState) => state.editTools);
const webGLPage = useSelector((state: IStoreState) => state.webGLPage);
const dispatch = useDispatch();
const undo = () => {
dispatch(undoComponent(cpnState.id));
toast('undo!');
};
const del = () => {
dispatch(deleteComponent(cpnState.id));
toast('delete!');
};
const paste = () => {
dispatch(pasteComponent(editToolsState.id))
toast('paste!');
};
const copy = () => {
dispatch(copyComponent(cpnState.id));
toast('copy!');
};
const cut = () => {
dispatch(copyComponent(cpnState.id));
dispatch(deleteComponent(cpnState.id));
toast('cut!');
};
const save = () => {
dispatch(saveComponent())
};
return (
<div className={style.edit_tools}>
<div className={style.label}>
EDIT:
</div>
<div className={style.tools}>
<button className={style.save_btn}>
<FontAwesomeIcon icon={faSave} onClick={save}/>
</button>
<button className={style.undo_btn} onClick={undo}>
<FontAwesomeIcon icon={faUndo}/>
</button>
<button className={style.cut_btn} onClick={cut}>
<FontAwesomeIcon icon={faCut}/>
</button>
<button className={style.copy_btn} onClick={copy}>
<FontAwesomeIcon icon={faCopy}/>
</button>
<button className={style.paste_btn} onClick={paste}>
<FontAwesomeIcon icon={faPaste}/>
</button>
<button className={style.trash_btn} onClick={del}>
<FontAwesomeIcon icon={faTrash}/>
</button>
</div>
</div>
);
}
Example #4
Source File: MenuBar.tsx From ble with Apache License 2.0 | 4 votes |
MenuBar: FunctionComponent = () => {
const { level, undoManager } = useStore();
const dispatch = useDispatch();
function on2StarsChange(value: number): void {
level.set2StarsTime(value * 1000);
}
function on3StarsChange(value: number): void {
level.set3StarsTime(value * 1000);
}
function onNameChange(ev: ChangeEvent<HTMLInputElement>): void {
level.setName(ev.target.value);
}
function onNameFocus(): void {
undoManager.startGroup();
}
function onNameBlur(ev: FocusEvent<HTMLInputElement>): void {
undoManager.stopGroup();
ev.target.reportValidity();
}
function onStarFocus(): void {
undoManager.startGroup();
}
function onStarBlur(): void {
undoManager.stopGroup();
}
function onUndo(): void {
dispatch({
type: 'undo',
});
}
function onRedo(): void {
dispatch({
type: 'redo',
});
}
return (
<Bar>
<Line>
<LevelNameInput
type="text"
value={level.name}
onChange={onNameChange}
onFocus={onNameFocus}
onBlur={onNameBlur}
placeholder="Level name"
required
/>
<Table>
<TableRow
title={`Finish in ${level.timings[0] / 1000}s or less to get 2 stars`}
>
<Text>★★</Text>
<StarInput
min={0}
step={0.001}
value={level.timings[0] / 1000}
onChange={on2StarsChange}
onFocus={onStarFocus}
onBlur={onStarBlur}
required
/>
<Text>secs</Text>
</TableRow>
<TableRow
title={`Finish in ${level.timings[1] / 1000}s or less to get 3 stars`}
>
<Text>★★★</Text>
<StarInput
min={0}
step={0.001}
value={level.timings[1] / 1000}
onChange={on3StarsChange}
onFocus={onStarFocus}
onBlur={onStarBlur}
required
/>
<Text>secs</Text>
</TableRow>
</Table>
</Line>
<Line>
<Button onClick={onUndo} disabled={!undoManager.canUndo}>
<FontAwesomeIcon icon={faUndo}/>
 
Undo
</Button>
<Button onClick={onRedo} disabled={!undoManager.canRedo}>
<FontAwesomeIcon icon={faRedo}/>
 
Redo
</Button>
<LoadSave/>
<HomeButton/>
</Line>
</Bar>
);
}