@belong-ui/checkbox

belong-ui: Checkbox Component

Usage no npm install needed!

<script type="module">
  import belongUiCheckbox from 'https://cdn.skypack.dev/@belong-ui/checkbox';
</script>

README

Basic Checkbox Usage:

The Label for the checkbox is to be added by the Parent.

initialState = { isChecked: false };

<Checkbox
  isChecked={state.isChecked}
  onClick={() => { setState({ isChecked: !state.isChecked }) }}
/>