G
Tokens
TypographySpacingColorRadiusShadowMotion

Menu


    <MenuCard maxWidth={30}>
      <MenuItem isActive>First</MenuItem>
      <MenuItem>Second</MenuItem>
      <MenuItem>Third</MenuItem>
    </MenuCard>
  

    <>
      <MenuItem isActive>First</MenuItem>
      <MenuItem isSelected>Second</MenuItem>
      <MenuItem>Third</MenuItem>
      <br />
      <MenuItem icon={<IconShare />}>Share</MenuItem>
      <MenuItem icon={<IconFolder />}>Move</MenuItem>
      <MenuItem icon={<IconTrash />} variant="danger">Delete</MenuItem>
    </>
  

    () => {
      const [isOpen, setIsOpen] = useState(false)
      return (
        <>
          <Button onClick={() => setIsOpen(!isOpen)}>Trigger</Button>
          <MenuCardTransition show={isOpen}>
            <div>Menu</div>
          </MenuCardTransition>
        </>
      )
    }
  

Props

MenuCard

Name
Type
Default
zIndex
oneOfType
number
string
1
children
node
maxHeight
oneOfType
number
string
maxWidth
oneOfType
number
string
isDisabled
bool

MenuItem

Name
Type
Default
variant
oneOf
'neutral' 'danger'
'neutral'
checkVariant
oneOf
'check' 'none'
'check'
isSelected
bool
isActive
bool
isDisabled
bool
icon
node
hasEllipsis
bool

MenuCardTransition

Name
Type
Default
children
node
show
bool