okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
0b3299a01
main
1import { tr } from '../lib/i18n' ; 2import { Icon } from './ui' ; 3/** Native input semantics with a consistent, legible tick across browsers. */ 4export function OnboardingCheckbox ({ checked, onChange} :{ 5checked :boolean ; 6onChange :( checked :boolean ) => void ; 7}) { 8return < span className = "onboard-checkbox" >< input type = "checkbox" checked = { checked } onChange = { e => onChange ( e . target . checked )}/>< span className = "onboard-checkbox-mark" aria-hidden = "true" >{ tr ( checked ?< Icon name = "check" size = { 13 }/> :null )}</ span ></ span >; 9}