Skip to content

BCcampus/react-composite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@bccampus/react-composite

This package is still in the alpha stage and under development.

yarn add @bccampus/react-composite
# or
npm install @bccampus/react-composite

Documentation: https://bccampus.github.io/react-composite

Known Issues

  • Selecting a range of items or all items is not announced by screen readers
  • No RTL support

To Do

<CompositeContext data={{ items }} focusOptions={{}}>
  <CompositeSelectionContext selectionOptions={{}}>
    <CompositeExpansionContext expansionOptions={{}}>
      <CompositeComponent renderRoot renderGroup renderItem />
    </CompositeExpansionContext>
  </CompositeSelectionContext>
</CompositeContext>
  • Implement a DnD context
<CompositeContext data={{ items }} focusOptions={{}}>
  <CompositeDragAndDropContext dragAndDropOptions={{}}>
    <CompositeComponent renderRoot renderGroup renderItem />
  </CompositeDragAndDropContext>
</CompositeContext>
  • Implement a virtualized composite root
<VirtualizedCompositeContext data={{ items }} virtualizerOptions={{}} focusOptions={{}}>
  ...
</VirtualCompositeContext>