Skip to content

danteissaias/reactants

Repository files navigation

Reactants

@reactants/ui minzip package size @reactants/ui package version

import {
  Button,
  DropdownMenu,
  DropdownMenuContent,
  DropdownMenuGroup,
  DropdownMenuItem,
  DropdownMenuLabel,
  DropdownMenuSeparator,
  DropdownMenuTrigger,
} from '@reactants/ui'

function Dropdown() {
  return (
    <DropdownMenu>
      <DropdownMenuTrigger asChild>
        <Button>Menu</Button>
      </DropdownMenuTrigger>

      <DropdownMenuContent>
        <DropdownMenuLabel>john@doe.com</DropdownMenuLabel>
        <DropdownMenuGroup>
          <DropdownMenuItem>Workspace Settings</DropdownMenuItem>
          <DropdownMenuItem>Create or join workspace</DropdownMenuItem>
          <DropdownMenuItem disabled>Add an account</DropdownMenuItem>
        </DropdownMenuGroup>
        <DropdownMenuSeparator />
        <DropdownMenuGroup>
          <DropdownMenuItem danger>Log out</DropdownMenuItem>
        </DropdownMenuGroup>
      </DropdownMenuContent>
    </DropdownMenu>
  )
}