How to use the @reach/menu-button.MenuButton function in @reach/menu-button

To help you get started, we’ve selected a few @reach/menu-button 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 autonomoussoftware / metronome-wallet-desktop / src / components / common / Selector.js View on Github external
import * as ReachUI from '@reach/menu-button'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import React from 'react'

import { ErrorMsg, Label } from './TextInput'
import SelectorCaret from '../icons/SelectorCaret'

const MenuButton = styled(ReachUI.MenuButton)`
  background-color: ${p => p.theme.colors.translucentPrimary};
  color: ${p => p.theme.colors.light};
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: ${p => p.theme.textShadow};
  padding: 0;
  border: none;
  display: block;
  height: 4.8rem;
  text-align: left;
  width: 100%;
  line-height: 4rem;
  margin-top: 0.8rem;
  cursor: pointer;
  display: flex;
github autonomoussoftware / metronome-wallet-desktop / src / components / sidebar / ChainSelector.js View on Github external
z-index: 4;
    width: 168px;
  }
`

const Title = styled.div`
  color: ${({ theme }) => theme.colors.light};
  font-size: 0.9rem;
  letter-spacing: 1.6px;
  font-weight: 600;
  opacity: 0.5;
  margin-bottom: 0.8rem;
  margin-left: 0.6rem;
`

const MenuButton = styled(ReachUI.MenuButton)`
  background-color: ${({ theme }) => theme.colors.lightShade};
  font: inherit;
  color: ${({ theme }) => theme.colors.light};
  border-radius: 1.2rem;
  border: none;
  text-align: left;
  display: block;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.4rem 1rem 0.8rem;
  transition: padding 0.3s;

  &:focus,

@reach/menu-button

Accessible React button dropdown menu.

MIT
Latest version published 2 years ago

Package Health Score

71 / 100
Full package analysis

Similar packages