Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
maelito
3 months ago
|
parent
|
context
|
favorite
| on:
The Overcomplexity of the Shadcn Radio Button
Note on the fact that this would add JS that needs to be loaded to see the page. No, because similar smart people created server-side rendering, adding another layer of complexity.
dchest
3 months ago
|
next
[–]
How do you implement this keyboard navigation with SSR (if you use buttons)?
https://www.radix-ui.com/primitives/docs/components/radio-gr...
DougBTX
3 months ago
|
parent
|
next
[–]
I can’t tell if this is sarcasm or not! Radio buttons support keyboard navigation without JS.
dchest
3 months ago
|
root
|
parent
|
next
[–]
That's what I mean: if you reimplement it, you need client-side JS to support keyboard navigation.
paulhebert
3 months ago
|
prev
[–]
It needs JS to be interactive unlike the native radio button
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: