diff options
author | Eric Bailey <git@esb.lol> | 2024-03-05 21:15:42 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 21:15:42 -0600 |
commit | 317e0cda7a30d21f35229c096b6ef3284819d19a (patch) | |
tree | 1999f3a766966bda7bcc8934ac0a8b45cc7633cd /src/components/Menu/context.tsx | |
parent | e721f84a2cd64bd98f54049bd17925ddf1b194c8 (diff) | |
download | voidsky-317e0cda7a30d21f35229c096b6ef3284819d19a.tar.zst |
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
Diffstat (limited to 'src/components/Menu/context.tsx')
-rw-r--r-- | src/components/Menu/context.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/Menu/context.tsx b/src/components/Menu/context.tsx new file mode 100644 index 000000000..9fc91f681 --- /dev/null +++ b/src/components/Menu/context.tsx @@ -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, +}) |