/

Checkbox


The checkbox is an additional control, that fits perfectly "Remember me" and accept agreements or conditions function.

import { useState } from 'react'
import { Checkbox } from 'insites-ui'

// Inside component
const [isChecked, setIsChecked] = useState(false)
const toggle = () => setIsChecked(!isChecked)

<Checkbox
  id="rememberMe"
  checked={isChecked}
  onChange={toggle}
>
  Remember me
</Checkbox>
Edit on GitHub