I am maintaining WCAG2.0 'AA' standards on a project in which i need to provide a value to for attribute in checkbox component in react-bootstrap but could not find a proper solution.
Code:: what i am writing jsx
<Checkbox checked={ props.item.selected || false }
onChange={() => {}}>
<div className="label-text"></div>
</Checkbox>
what i looks like in html:
<div class="checkbox">
<label title="">
<input type="checkbox" value="on">
<div class="label-text"></div>
</label>
</div>
looking for sort of html :
<label **for="boxa"**>birds</label>
<input **id="boxa"** type="checkbox" name="mytext" />