import Layout from '../../components/Layout' import { ComponentsSidebar } from '../../sidebars' import { Playground } from '../../components/Playground'; import { Code, Heading, Paragraph } from '@knkui/typography'; export default function Checkbox() { return ( If you have multiple options appearing in a list, you can preserve space by using checkboxes instead of on/off switches. If you have a single option, avoid using a checkbox and use an on/off switch instead. Standalone radio buttons Radio can also be used standalone, without a RadioGroup. ` } /> RadioGroup RadioGroup is a helpful wrapper used to group Radio components that provides an easier API, and proper keyboard accessibility to the group. setValue(e.target.value)} > currently selected value: {value} ) } ` } /> ) }