import React from 'react'; import cn from 'classnames'; import Flex from './Flex'; import AspectRatio from 'components/AspectRatio'; // TODO: make this look like screens export default function CheckboxInput({ // visuals name, label, className, // callbacks onValue, onEnter, // state from hook focused, pass, visiblyPassed, error, hintError, data, bind, autoFocus, disabled, // ignored initialValue, validators, transformers, // extra ...rest }) { return ( {/* we totally hide the checkbox itself */} {/* and then display a prettier one in its stead */} {data && '✓'} {label} ); }