Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active October 3, 2018 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/e8a0662af1db1548012c0dcd6fdf4381 to your computer and use it in GitHub Desktop.
Save productioncoder/e8a0662af1db1548012c0dcd6fdf4381 to your computer and use it in GitHub Desktop.
Adding horizontal Dividers to Youtube Sidebar
import React from 'react';
import {SideBarItem} from './SideBarItem/SideBarItem';
import {Menu, Divider} from 'semantic-ui-react';
import './SideBar.scss';
export class SideBar extends React.Component {
render() {
return (
<Menu borderless vertical stackable fixed='left' className='side-nav'>
<SideBarItem highlight={true} label='Home' icon='home'/>
<SideBarItem label='Trending' icon='fire'/>
<SideBarItem label='Followers' icon='spy'/>
<Divider/>
<SideBarItem label='History' icon='history'/>
<SideBarItem label='Watch later' icon='clock'/>
<SideBarItem label='Liked videos' icon='thumbs up'/>
<Divider/>
<SideBarItem label='Movies and Shows' icon='film'/>
<Divider/>
<SideBarItem label='Report history' icon='flag'/>
<SideBarItem label='Help' icon='help circle'/>
<SideBarItem label='Send feedback' icon='comment'/>
<Divider/>
</Menu>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment