react-icons/md#MdMoreHoriz TypeScript Examples

The following examples show how to use react-icons/md#MdMoreHoriz. 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: settings-menu.tsx    From desktop with MIT License 6 votes vote down vote up
export function SettingsMenu(props: DropdownMenuItemsProps): JSX.Element {
  return (
    <DropdownMenu>
      <DropdownMenuButton
        sx={{
          background: `none`,
          border: `none`,
          // Give ourselves a big hit target, but align as if we didn't
          p: 4,
          marginRight: -4,
          my: -4,
          cursor: `pointer`,
          display: `flex`,
          alignItems: `center`,
          justifySelf: `flex-end`,
        }}
      >
        <MdMoreHoriz size={24} sx={{ color: `grey.50` }} />
      </DropdownMenuButton>
      <DropdownMenuItems sx={{ width: `50vw` }} {...props} />
    </DropdownMenu>
  )
}