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 #2373

Closed spugachev closed 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 94.25287% with 15 lines in your changes missing coverage. Please review.

Project coverage is 95.44%. Comparing base (536f5f4) to head (de71e3b). Report is 85 commits behind head on main.

Files Patch % Lines
src/button-group/menu-dropdown-item.tsx 59.09% 9 Missing :warning:
src/button-group/icon-button-item.tsx 90.00% 3 Missing :warning:
src/button-group/internal.tsx 88.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2373 +/- ## ========================================== + Coverage 95.40% 95.44% +0.04% ========================================== Files 705 715 +10 Lines 18715 19026 +311 Branches 6222 6357 +135 ========================================== + Hits 17855 18160 +305 - Misses 807 858 +51 + Partials 53 8 -45 ```

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