@fortawesome/free-regular-svg-icons#faBell JavaScript Examples
The following examples show how to use
@fortawesome/free-regular-svg-icons#faBell.
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: NotificationMenu.jsx From react-lte with MIT License | 6 votes |
NotificationMenu = ({ href }) => {
return (
<LteNavDropdown icon={faBell} badgeText='15' badgeColor='warning'>
<DropdownItem tag='span' header>
15 Notifications
</DropdownItem>
<DropdownItem divider />
<Content data={demoData} />
<DropdownItem tag={Link} to={href} className='dropdown-footer'>
See All Notifications
</DropdownItem>
</LteNavDropdown>
);
}
Example #2
Source File: NavigationBar.jsx From MyHome-Web with Apache License 2.0 | 5 votes |
render() {
return (
<Navbar>
<div>
<MenuIcon icon={this.props.menuToggled ? faTimes : faBars} onClick={this.props.onMenuToggle} />
<Text>MyHome logo</Text>
</div>
<div>
<span className="fa-layers fa-fw">
<FontAwesomeIcon icon={faBell} color={styles.colors.grey} size="lg" />
<Text className="fa-layers-counter" color={styles.colors.white} fontSize="2em" backgroundColor={styles.colors.red}>2</Text>
</span>
<span>
<Avatar src="https://http.cat/400" margin="0 10px" width="25px" height="25px" />
<Text
fontWeight="500"
dropdownMargin="0 0 0 -30px"
dropdown={
<ItemList>
{this.props.currentUser ?
<Item onClick={this.doSignOut}>
<FontAwesomeIcon icon={faSignOutAlt} />
<Text padding="0 0 0 5px">Logout</Text>
</Item>
:
<>
<Item onClick={this.goToSignUp}>
<FontAwesomeIcon icon={faUserPlus} />
<Text padding="0 0 0 5px">Sign Up</Text>
</Item>
<Item onClick={this.goToLogin}>
<FontAwesomeIcon icon={faSignInAlt} />
<Text padding="0 0 0 5px">Login</Text>
</Item>
</>
}
</ItemList>
}
>
{this.props.currentUser ? 'Tony Stark' : 'Guest'}
</Text>
</span>
</div>
</Navbar>
)
}