We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
現在のcontext menuはreact-contextmenuを使用しているが、このOSSはメンテナがいないため1年ほど前で開発が止まってしまっている。そのため、独自実装でcontextmenuコンポーネントを作りたい。 その際、メニューコンポーネントをchakra-uiのMenuを使用したい。
2つのコンポーネントを作る
Triggerからの状態管理はreact-contextmenuを元に作成する。 https://github.com/vkbansal/react-contextmenu/blob/master/src/actions.js
Triggerにid以外にdataを組み込み、複数のTriggerを1つのContextMenuで扱えるようにする。 dataはRecoilなどのグローバルステートを使用を想定。
2つのコンポーネントどちらもChakraのコンポーネントを継承し、cssをpropsで行えるようにする。
The text was updated successfully, but these errors were encountered:
https://codesandbox.io/s/chakra-ui-recoil-context-menu-dfy7j?file=/src/demo.tsx
Sorry, something went wrong.
No branches or pull requests
概要
現在のcontext menuはreact-contextmenuを使用しているが、このOSSはメンテナがいないため1年ほど前で開発が止まってしまっている。そのため、独自実装でcontextmenuコンポーネントを作りたい。
その際、メニューコンポーネントをchakra-uiのMenuを使用したい。
設計(案)
2つのコンポーネントを作る
Triggerからの状態管理はreact-contextmenuを元に作成する。
https://github.com/vkbansal/react-contextmenu/blob/master/src/actions.js
Triggerにid以外にdataを組み込み、複数のTriggerを1つのContextMenuで扱えるようにする。
dataはRecoilなどのグローバルステートを使用を想定。
2つのコンポーネントどちらもChakraのコンポーネントを継承し、cssをpropsで行えるようにする。
使用箇所
The text was updated successfully, but these errors were encountered: