How to use the semantic-ui-react.Menu.Item function in semantic-ui-react

To help you get started, we’ve selected a few semantic-ui-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Metnew / suicrux / src / common / components / parts / Sidebar / style.jsx View on Github external
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
`
//
export const SidebarLogoContainer = styled.a`
  background-color: ${props => props.theme.primaryColorDark};
  padding: 25px;
  text-align: center;
  ${media.md`
    padding: 25px;
  `};
	${media.lg`
    padding: 20px;
  `};
`
// Color: ${props => props.theme.primaryColorText}!important;
export const SidebarItem = styled(Menu.Item)``
//
export const SidebarLogoutItem = SidebarItem.extend`
  cursor: pointer;
  border-top: 1px solid rgba(34, 36, 38, 0.15) !important;
`
github ilime / Petal / src / __tests__ / Sidebar.spec.js View on Github external
test('after login, navlink change', () => {
    let wrapperWithId = shallow()
    let index = 0
    wrapperWithId.find(Menu.Item).forEach(l => {
      expect(l.props().to).toMatch(authRoutes[index++])
    })
  })
})
github Netflix / vector / src / app / components / ConfigPanel / CustomChartSelector.spec.jsx View on Github external
it('renders one heading and one menu items', () => {
      const items = create().find(Menu).find(Menu.Item)
      expect(items.length).to.equal(2)
    })
    it('renders a clear widgets item', () => {
github Netflix / vector / src / app / components / Navbar / Navbar.spec.js View on Github external
it('renders a two Menu.Items', () => {
      expect(create().find(Menu).find(Menu.Item).length).to.equal(2)
    })
  })
github Metnew / suicrux / src / common / components / parts / Sidebar / style.jsx View on Github external
export const SidebarLogo = styled(Logo)`margin: 5px;`
//
export const SidebarLogoContainer = styled.a`
	background-color: ${props => props.theme.accentColor};
	color: ${props => props.theme.accentColor};
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
	padding: 25px;
	text-align: center;
	${media.md`
    padding: 25px;
  `};
	${media.lg`
    padding: 20px;
  `};
`
export const SidebarItem = styled(Menu.Item)``
export const SidebarLogoutItem = styled(SidebarItem)`
	cursor: pointer;
	border-top: 1px solid rgba(34, 36, 38, 0.15) !important;
`
github chanshiyucx / heart-beat / src / components / nav.js View on Github external
import React, { PureComponent } from 'react'
import { Link } from 'dva/router'
import { connect } from 'dva'
import styled from 'styled-components'
import { Menu, Input } from 'semantic-ui-react'

const Container = styled.div`
  padding-left: 280px;
  height: 60px;
`

const StyledMenu = styled(Menu)`
  height: 100%;
`

const StyledMenuItem = styled(Menu.Item)`
  width: 80px;
  justify-content: center;
`

const StyledInput = styled(Menu.Menu)`
  width: 239px;
`

class Nav extends PureComponent {
  handleItemClick = (e, { name }) => {
    this.props.dispatch({
      type: 'appModel/switchRoute',
      payload: {
        route: name,
      },
    })
github Raathigesh / atmo / packages / app / src / renderer / components / sidebar / Sidebar.tsx View on Github external
onEndpointSelection: (id: string) => void;
  onEndpointDelete: (id: string) => void;
  moveEndpoint: (fromIndex: number, toIndex: number) => void;
  openPreferenceDialog: () => void;
  save: () => void;
  deploy: () => void;
  remoteDeploy: () => void;
  closeProject: () => void;
}

const MinimalSidebar = styled(Sidebar)`
    background-color: #2d2d2d !important;
    color: gray;
`;

const SideBarItem = styled(Menu.Item)`
  background-color: #1b1b1b !important;
  border-right: ${props =>
    props.highlight
      ? "5px solid #ff6a4d !important;"
      : "5px solid #3c3c3c !important;"};
  width: ${props => (props.divide ? "50%" : "100%")};
  float: ${props => (props.float === "right" ? "right" : "")};
`;

const Logo = styled.img`
  height: 40px !important;
  margin-left: 20px !important;
  width: 183px !important;
`;

function displayUrl(url: string) {
github NERC-CEH / datalab / code / datalab-app / src / app / components / app / SubMenu.spec.js View on Github external
const generateItems = () => [
    { Component: Menu.Item, props: { expectedProps: 'firstExpectedProps' }, children: 'firstExpectedChildren' },
    { Component: Menu.Item, props: { expectedProps: 'secondExpectedProps' }, children: 'secondExpectedChildren' },
    { Component: NavLink, props: { to: '/', expectedProps: 'thirdExpectedProps' }, children: 'thirdExpectedChildren' },
    { Component: NavLink, props: { to: '/', expectedProps: 'fourthExpectedProps' }, chilren: 'fourthExpectedChildren' },
  ];
github hitchcott / spectrum / src / components / common / menu_system.jsx View on Github external
renderItems(mappedTabs) {
    const { renderTab, dropdown } = this.props;
    const ItemComp = dropdown ? Dropdown.Item : Menu.Item;
    return mappedTabs.map(({ hidden, exact, icon, key, content, active, as, to, onClick, disabled, props }) => {
      if (hidden) { return null; }
      if (renderTab) { return renderTab({ exact, icon, key, content, active, as, to, onClick, disabled, ...props }); }
      return ;
    });
  }
  render() {