cloudscape-design / components

React components for Cloudscape Design System
https://cloudscape.design/
Apache License 2.0
2.3k stars 140 forks source link

feat: button-group component #2379

Open spugachev opened 2 weeks ago

spugachev commented 2 weeks ago

Description

Button Group component is a collection of contextual and persistent triggers. The primary use case is to enable users to perform actions on generative AI outputs. The button triggers all have a consistent variant, might have separators and a button dropdown at the end. Momentarily we only need the icon variant but we expect a future extension with the normal variant. The icon triggers can have tooltips activated with hover or focus and popovers indicating status (like Copy / Copied).


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 58.06452% with 130 lines in your changes missing coverage. Please review.

Project coverage is 94.80%. Comparing base (536f5f4) to head (e022c86). Report is 107 commits behind head on main.

:exclamation: Current head e022c86 differs from pull request most recent head d7b7b20

Please upload reports for the commit d7b7b20 to get more accurate results.

Files Patch % Lines
src/button-group/internal.tsx 22.98% 67 Missing :warning:
src/button-group/item-element.tsx 3.03% 32 Missing :warning:
src/button-group/tooltip/index.tsx 0.00% 30 Missing :warning:
src/button-group/menu-dropdown-item.tsx 85.71% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2379 +/- ## ========================================== - Coverage 95.40% 94.80% -0.61% ========================================== Files 705 716 +11 Lines 18715 19069 +354 Branches 6222 6378 +156 ========================================== + Hits 17855 18078 +223 - Misses 807 983 +176 + Partials 53 8 -45 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.