jaohara / ui-component-library

A Component library for various UI elements that I have built for use in my personal projects.
0 stars 0 forks source link

Implement ToggleSwitch #24

Closed jaohara closed 7 months ago

jaohara commented 7 months ago

A simple input that allows users to toggle a boolean value.

jaohara commented 7 months ago

Initial implementation should be functional but not worry too much about styling; this will all be corrected on a style pass.

For here, it could just be a span that listens for a click and says "on" or "off" based on state

jaohara commented 7 months ago

An initial implementation with a <button> is working. This is probably closer to the end component than I expected, but it still needs a style pass where the look is unified with the rest of the UI and the stylesheet is updated to use the global css variables.