Commit 047f9fc6 by Sarah Fischmann

added ability to disable checkbox

parent 99618196
......@@ -39,6 +39,7 @@ class CheckBox extends React.Component {
aria-checked={this.state.pressed}
tabIndex="0"
onClick={() => this.handleClick()}
disabled={props.disabled}
/>
{props.checkLabel}
</label>
......
......@@ -134,4 +134,13 @@ storiesOf('CheckBox', module)
describedBy="checkbox"
checkLabel="check me out!"
/>
))
.add('disabled', () => (
<CheckBox
name="checkbox"
label="CheckBox"
describedBy="checkbox"
checkLabel="you cannot check me out"
disabled="true"
/>
));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment