Add Menu component (#3097)

* Add POC menu abstraction

* Better platform handling

* Remove ignore

* Add some menu items

* Add controlled dropdown

* Pass through a11y props

* Ignore uninitialized context

* Tweaks

* Usability improvements

* Rename handlers to props

* Add radix comment

* Ignore known type

* Remove todo

* Move storybook item

* Improve Group matching

* Adjust theming
This commit is contained in:
Eric Bailey 2024-03-05 21:15:42 -06:00 committed by GitHub
parent e721f84a2c
commit 317e0cda7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 712 additions and 11 deletions

View file

@ -0,0 +1,8 @@
import React from 'react'
import type {ContextType} from '#/components/Menu/types'
export const Context = React.createContext<ContextType>({
// @ts-ignore
control: null,
})