halstack-react
halstack-react copied to clipboard
New `Tabs` component implementation
Checklist (Check off all the items before submitting)
- [ ] Build process is done without errors. All tests pass in the
/lib
directory. - [ ] Self-reviewed the code before submitting.
- [ ] Meets accessibility standards.
- [ ] Added/updated documentation to
/website
as needed. - [ ] Added/updated tests as needed.
Description
Current DxcTabs
API is confusing, as it is expected to work in a similar way as DxcNavTabs, but it does not provide Compound Components, so we have no access to onClick/onHover events separately for each Tab.
For consistency purposes and easier implementation of the wrappers required in Halstack Studio and UXPin, it is convenient to redo it.
For now, we are maintaining the old API available to prevent adding breaking changes, however, those props will be marked as LEGACY/DEPRECATED to not encourage using them in the future (and eventually, removing them).