@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#faRedoAlt TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faRedoAlt.
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: SecondaryTableAttribute.tsx From datajoint-labbook with MIT License | 6 votes |
/**
* Function to generate html label block for a given sedcondary attribute
* NOTE: Currently disabled reset to null, will add support for it at some other point.
* @param secondaryTableAttribute
* @param resetToNullCallback Call back function for reset it back to null
* @returns
*/
static getAttributeLabelBlock(secondaryTableAttribute: SecondaryTableAttribute, resetToNullCallback: (tableAttribute: SecondaryTableAttribute) => void) {
const typeString = super.getTypeString(secondaryTableAttribute);
return(
<div className="attributeHead">
<label className="secondary-attribute-label" htmlFor={secondaryTableAttribute.attributeName}>{secondaryTableAttribute.attributeName + ' (' + typeString + ')'}</label>
{
secondaryTableAttribute.defaultValue !== undefined ?
<div className="nullableControls">
<div className="nullableTag">{'default'}</div>
<FontAwesomeIcon className="resetIcon" icon={faRedoAlt} onClick={() => {resetToNullCallback(secondaryTableAttribute)}} />
</div> : ''
}
</div>
)
}
Example #2
Source File: LabelFields.tsx From knboard with MIT License | 4 votes |
LabelFields = ({ fieldsId, onSubmit, setActive }: Props) => {
const theme = useTheme();
const {
register,
setValue,
triggerValidation,
watch,
errors,
} = useFormContext();
const setRandomColor = () => {
setValue("color", getRandomHexColor());
triggerValidation();
};
const pendingColor = watch("color");
return (
<Flex
css={css`
${theme.breakpoints.down("xs")} {
flex-direction: column;
}
`}
>
<div
css={css`
display: flex;
${theme.breakpoints.down("xs")} {
margin-bottom: 1rem;
}
`}
>
<TextField
id={`${fieldsId}label-name`}
autoFocus
size="small"
label="Label name"
variant="outlined"
name="name"
inputRef={register({ required: true })}
error={Boolean(errors.name)}
css={css`
margin-right: 1rem;
`}
/>
<IconButton
size="small"
onClick={setRandomColor}
data-testid="random-color"
css={css`
height: 2.25rem;
width: 2.25rem;
color: ${TASK_G};
padding: 0.75rem;
margin-right: 0.5rem;
background-color: ${pendingColor};
color: ${Boolean(errors.color)
? DANGER
: getContrastColor(pendingColor)};
border: ${getContrastColor(pendingColor) === BLACK &&
"1px solid #ccc"};
&:hover {
background-color: ${pendingColor};
}
font-size: 0.825rem;
`}
>
<FontAwesomeIcon icon={faRedoAlt} size="sm" />
</IconButton>
<TextField
id={`${fieldsId}label-color`}
size="small"
label="Color"
variant="outlined"
name="color"
inputRef={register({
pattern: /^#(?:[0-9a-fA-F]{3}){1,2}$/,
})}
error={Boolean(errors.color)}
css={css`
width: 90px;
.MuiInputBase-input {
font-family: monospace;
}
`}
/>
</div>
<Actions>
<Button
onClick={() => setActive(false)}
css={css`
margin: 0 0.5rem;
font-size: 0.625rem;
`}
variant="outlined"
>
Cancel
</Button>
<Button
onClick={onSubmit}
color="primary"
variant="contained"
css={css`
font-size: 0.625rem;
`}
>
Save
</Button>
</Actions>
</Flex>
);
}