LumexUI / lumexui

🚀 A versatile Blazor UI library built using Tailwind CSS.
https://lumexui.org
MIT License
48 stars 2 forks source link

feat(components): add switch component #31

Closed desmondinho closed 4 months ago

desmondinho commented 4 months ago

Description

Add the switch component to the components library.

Closes #30

What's been done?

Added the switch and the base boolean input components with the following abilities:

Base boolean input

It is a derived class from LumexInputBase<bool> class. It holds a common functionality for all the boolean input components, such as LumexCheckbox and LumexSwitch.

Switch

Checklist

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.23%. Comparing base (e8fb98f) to head (86f38ed). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #31 +/- ## ========================================== + Coverage 98.19% 98.23% +0.04% ========================================== Files 40 43 +3 Lines 939 962 +23 Branches 97 101 +4 ========================================== + Hits 922 945 +23 Misses 12 12 Partials 5 5 ```

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