react-icons/go#GoQuote JavaScript Examples
The following examples show how to use
react-icons/go#GoQuote.
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: Blockquote.js From starter-project-gatsby-mdx-blog-course-project with MIT License | 6 votes |
Blockquote = ({ children, display }) => {
if (display === "warning")
return (
<Wrapper>
<div className="container warning">
<TiWarningOutline className="icon" />
{children}
</div>
</Wrapper>
)
if (display === "info")
return (
<Wrapper>
<div className="container info">
<FiInfo className="icon" />
{children}
</div>
</Wrapper>
)
if (display === "default") {
return (
<Wrapper>
<div className="container default">{children}</div>
</Wrapper>
)
} else {
return (
<Wrapper>
<div className="quote">
<GoQuote className="quote-icon" />
{children}
</div>
</Wrapper>
)
}
}
Example #2
Source File: texteditor.js From GitMarkonics with MIT License | 5 votes |
render() {
return (
<div>
<Flex color="black">
<Box
flex="1"
bg="#F0A6CA"
border="0.5px"
borderColor="#F0E6EF"
style={{ margin: 0, padding: "5px" }}
p={1}
m={2}
>
<Stack direction="row" spacing={1} align="center">
<Select
onChange={this.handleHeadingChange.bind(this)}
width="50%"
bg="F0A6CA"
value={this.state.value}
>
{headersMap.map((item, i) => (
<option value={item.style}>{item.label}</option>
))}
</Select>
<Tooltip label={`Ctrl + ${shortcutKeyMap.BOLD} - Bold`}>
<Button onClick={this._onBoldClick.bind(this)}>
<Icon as={GoBold} />
</Button>
</Tooltip>
<Tooltip label={`Ctrl + ${shortcutKeyMap.ITALIC} - Italic`}>
<Button onClick={this._onItalicClick.bind(this)}>
{" "}
<Icon as={GoItalic} />
</Button>
</Tooltip>
<Tooltip label={`Ctrl + ${shortcutKeyMap.QUOTE} - Quote`}>
<Button onClick={this._onBlockQuoteClick.bind(this)}>
<Icon as={GoQuote} />
</Button>
</Tooltip>
<Tooltip label={`Ctrl + ${shortcutKeyMap.LIST} - List`}>
<Button onClick={this._onBulletClick.bind(this)}>
<Icon as={GoListUnordered} />
</Button>
</Tooltip>
{/* <Button onClick={this._onNumberClick.bind(this)}>
<Icon as={GoListOrdered} /> */}
{/* </Button> */}
<Tooltip label={`Ctrl + ${shortcutKeyMap.DOWNLOAD} - Download`}>
<Button onClick={this.onDownload.bind(this)}>
<Icon as={GoDesktopDownload} /> Download
</Button>
</Tooltip>
</Stack>
<Box className="editors-panel">
<Editor
editorState={this.state.editorState}
handleKeyCommand={this.handleKeyCommand}
onChange={this.onChange}
placeholder="Lets Start Documenting ..."
/>
</Box>
</Box>
<Output file={this.state.file} />
</Flex>
</div>
);
}