charlie-yao / react-aria-widgets

Implementations of WAI-ARIA widgets and design patterns in React.
MIT License
2 stars 0 forks source link

Stricter typing for how the accordion render functions pass props down #138

Closed charlie-yao closed 1 year ago

charlie-yao commented 1 year ago

Let's say we know the panel element type of the accordion is some component AccordionPanel. If possible, it might make sense to restrict the properties of panelProps in the render functions to only the props that AccordionPanel can accept.