digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
76 stars 37 forks source link

Use u-tabs under the hood of Tabs? #2449

Open eirikbacker opened 1 week ago

eirikbacker commented 1 week ago

This would ensure good accessibility, provide a go-to-option for non-React-users, as well as remove the need for manually setting value on all tabs subcomponents

mimarz commented 4 days ago

Lets investigate and make a POC PR we can look at.

Aside from finding in #2355 it would be good to document other benefits or lack of support in the current implementation.

eirikbacker commented 4 days ago

Quick example (not implemented controlled state): #2494

Pros:

Cons: