dotkom / design-system

Component library, maybe
https://design.online.ntnu.no
MIT License
4 stars 4 forks source link

Checkbox: Sync state with props to allow for both methods #172

Closed FluidSense closed 3 years ago

FluidSense commented 3 years ago

Checklist

Notes to other people

About the pull request

One can either control a checkbox through isChecked or one can allow for the checkbox to update itself and just use the value for what you want. However, right now, isChecked does not work since the state overrides the prop.

Screenshots

...

FluidSense commented 3 years ago

Checks fail because #173