Skip to content

Commit

Permalink
feat(checkbox): add description
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Kiefer committed Oct 11, 2021
1 parent 4ee6350 commit a8fb522
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/entries/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function Checkbox(props) {
* @param {Object} props
* @param {Object} props.element
* @param {String} props.id
* @param {String} props.description
* @param {String} props.label
* @param {Function} props.getValue
* @param {Function} props.setValue
Expand All @@ -37,6 +38,7 @@ export default function CheckboxEntry(props) {
const {
element,
id,
description,
label,
getValue,
setValue
Expand All @@ -47,6 +49,7 @@ export default function CheckboxEntry(props) {
return (
<div class="bio-properties-panel-entry bio-properties-panel-checkbox-entry" data-entry-id={ id }>
<Checkbox id={ id } label={ label } onChange={ setValue } value={ value } />
{ description && <div class="bio-properties-panel-description">{ description }</div> }
</div>
);
}
Expand Down

0 comments on commit a8fb522

Please sign in to comment.