dxc-technology / halstack-react

Library of components for building SPAs with React and Halstack Design System
https://developer.dxc.com/halstack/
Apache License 2.0
15 stars 14 forks source link

Adding groups to the Contextual Menu #1892

Closed GomezIvann closed 8 months ago

GomezIvann commented 8 months ago

Checklist

Description In the previous weeks, we have been working on a new component, the DxcContextualMenu. During its development, a new need arose: adding groups to the component, which can contain single elements or other groups.

To implement this new functionality we had to use a recursive algorithm to optimize the rendering of nested components up to N level. This had a few consequences for the component API:

The design can be checked here.