How do I specify alignment in react-aria useTable? #2718
Unanswered
kristiandupont
asked this question in
Q&A
Replies: 1 comment
-
The main reason it isn't included is because React Aria intentionally doesn't implement any styles by itself. I think React Spectrum's method you mentioned is probably the best bet for achieving that functionality. |
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
-
I have built a table component using
useTable
and I would like the consumer to be able to specify how to align each column (left, center, right). I can see that the SpectrumColumn
component allows this and as far as I can tell, it works by casting the Column type?I can do this as well, of course, but it seems like a hack to a very common thing in tables so if that is indeed the way to go, I am curious as to why this property wasn't added to Aria?
Beta Was this translation helpful? Give feedback.
All reactions