@fortawesome/free-solid-svg-icons#faPen JavaScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faPen.
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: icon.js From uptime-kuma with MIT License | 5 votes |
library.add( faArrowAltCircleUp, faCog, faEdit, faEye, faEyeSlash, faList, faPause, faPlay, faPlus, faSearch, faTachometerAlt, faTimes, faTimesCircle, faTrash, faCheckCircle, faStream, faSave, faExclamationCircle, faBullhorn, faArrowsAltV, faUnlink, faQuestionCircle, faImages, faUpload, faCopy, faCheck, faFile, faAward, faLink, faChevronDown, faSignOutAlt, faPen, faExternalLinkSquareAlt, faSpinner, faUndo, faPlusCircle, faAngleDown, faLink, );
Example #2
Source File: fontawesome.js From xmrig-workers with GNU General Public License v3.0 | 5 votes |
export default function () {
library.add(faGithub, faWindows, faLinux, faTwitter, faReddit, faTelegram, faCheckCircle, faMicrochip, faTrashAlt,
faPaperPlane, faSpinner, faFlask, faInfoCircle, faPen, faTools, faCheck, faPlus, faCog, faExclamationTriangle,
faQuestionCircle, faSyncAlt, faInfinity, faDownload, faCopy, faPlug, faTimesCircle);
}
Example #3
Source File: Index.js From Easy-Annotator with GNU General Public License v3.0 | 4 votes |
render() {
const { listrois, selected } = this.state;
return (
<ThemeProvider theme={this.state.currentTheme}>
<Layout>
<Header>
<Select
id="theme"
name="theme"
defaultValue={this.state.currentTheme}
sx={{
px: 2,
mx: 2,
}}
onChange={(e) => {
console.log(e.target.value);
this.setState({
currentTheme: presets[e.target.value],
});
cookie.save("theme", presets[e.target.value], { path: "/" });
}}
>
{Object.keys(presets).map((key) => (
<option
sx={{ bg: "background" }}
key={key}
children={key}
></option>
))}
</Select>
<VideoUploadForm refresh={this.refreshCanvas} />
</Header>
<Body>
<Content>
<Canvas
ref={this.canvasRef}
listrois={listrois}
addNewRoi={this.addNewRoi}
onFPSCallback={this.onFPSCallback}
onDurationCallback={this.onDurationCallback}
onTrackingCallback={this.onTrackingCallback}
selected={selected}
disableRois={this.disableRois}
/>
</Content>
<Panel>
<Flex>
<Box width={1 / 2} mx={2}>
<Menu id="dropdown-roi">
<MenuButton
sx={{
bg: "primary",
my: 2,
color: "background",
border: "0",
"&:hover": {
bg: "highlight",
border: "0",
},
"&:visited": {
bg: "primary",
},
"&:active": {
bg: "primary",
},
"&:visited": {
bg: "primary",
},
}}
>
<FontAwesomeIcon icon={faPen} />
<span aria-hidden>▾</span>
</MenuButton>
<MenuList
className="slide-down"
sx={{
"&[data-reach-menu-items]": {
color: "background",
bg: "primary",
border: "0",
borderRadius: 4,
animation: "slide-down 0.2s ease",
},
}}
>
<MenuItem
onSelect={() =>
this.canvasRef.current.addROI("Benign", false)
}
sx={styledDropdown}
>
Benign
</MenuItem>
<MenuItem
onSelect={() =>
this.canvasRef.current.addROI("Suspicious", false)
}
sx={styledDropdown}
>
Suspicious
</MenuItem>
<MenuItem
onSelect={() =>
this.canvasRef.current.addROI("Cancerous", false)
}
sx={styledDropdown}
>
Cancerous
</MenuItem>
<MenuItem
onSelect={() =>
this.canvasRef.current.addROI("Unknown", false)
}
sx={styledDropdown}
>
Unknown
</MenuItem>
<MenuItem
onSelect={() =>
this.canvasRef.current.addROI("Custom", true)
}
sx={styledDropdown}
>
Custom
</MenuItem>
</MenuList>
</Menu>
</Box>
<Button
onClick={this.downloadRois}
width={1 / 2}
mx={2}
my={2}
ml={5}
sx={{
color: "background",
"&:hover": {
bg: "highlight",
border: 0,
},
}}
>
<FontAwesomeIcon icon={faDownload} />
</Button>
</Flex>
<LayerPanel
listrois={listrois}
selected={selected}
onEyeClick={this.onEyeClick}
setSelected={this.setSelected}
onDeleteClick={this.deleteRoi}
/>
</Panel>
</Body>
<Footer>© IBM {new Date().getFullYear()}</Footer>
</Layout>
</ThemeProvider>
);
}