* 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
8 lines
179 B
TypeScript
8 lines
179 B
TypeScript
import React from 'react'
|
|
|
|
import type {ContextType} from '#/components/Menu/types'
|
|
|
|
export const Context = React.createContext<ContextType>({
|
|
// @ts-ignore
|
|
control: null,
|
|
})
|