Replies: 2 comments
-
Not sure if this is a good idea anymore. The |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any updates on this? I'd also like to add styling props to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I know that the RAC component should cover most cases and we should reach for the hooks if we want more customization, but I found that a lot of common features (e.g. column alignment, striped columns, ...) are enable by exposing the properties of the columns to cell in the same column.
Internally the
TableCell
already has access to the collection. Exposing the respective column of a cell should be straight forward (happy to submit a PR!)react-spectrum/packages/react-aria-components/src/Table.tsx
Line 1135 in 48f29e1
Passing something like the
state.collection.columns[cell.index].props
ascolumnProps
to a render function (viavalues
) would greatly improve the versatility of theTable
component.(Context: I tried to use the
TableStateContext
, but the cell doesn't know its own index.)Beta Was this translation helpful? Give feedback.
All reactions