File tree Expand file tree Collapse file tree 4 files changed +41
-0
lines changed
src/core/utils/RovingFocusGroup Expand file tree Collapse file tree 4 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ import { createContext } from 'react' ;
2+
3+ export const RovingFocusRootContext = createContext ( { } ) ;
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ const RovingFocusRoot = ( { children } : { children : React . ReactNode } ) => {
4+ return < div > RovingFocusRoot</ div > ;
5+ } ;
6+
7+ export default RovingFocusRoot ;
Original file line number Diff line number Diff line change 1+ import RovingFocusRoot from './fragments/RovingFocusRoot' ;
2+
3+ const RovingFocusGroup = {
4+ Root : RovingFocusRoot
5+ } ;
6+
7+ export default RovingFocusGroup ;
Original file line number Diff line number Diff line change 1+ import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor' ;
2+ import React from 'react' ;
3+
4+ import RovingFocusGroup from '../index' ;
5+
6+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
7+ export default {
8+ title : 'WIP/RovingFocusGroup' ,
9+ component : RovingFocusGroup ,
10+ render : ( ) => < >
11+ < SandboxEditor className = "space-y-2" >
12+ < RovingFocusGroup . Root >
13+ < div > RovingFocusGroup</ div >
14+ </ RovingFocusGroup . Root >
15+ </ SandboxEditor >
16+ </ >
17+ } ;
18+
19+ // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
20+ export const All = {
21+ args : {
22+ className : ''
23+ }
24+ } ;
You can’t perform that action at this time.
0 commit comments