Griddle
Griddle copied to clipboard
Question: Passing Additional HTML attributes to <td> and <th> elements
Forgive me if I missed this, but I can't seem to find a way to pass additional attributes to the td
and th
elements that are rendered. I'd like to be able to pass ARIA attributes to improve accessibility of tables.
Keys from the extraData
<ColumnDefinition>
prop are passed through to Cell
and TableHeadingCell
(example). To render them as ARIA attributes you would simply override those components (inline or via plugin).
Would be neat to have a Storybook example to demonstrate this, if you care to contribute. (Or we can write up an example if you can be more specific.)