Skip to content

Commit

Permalink
feat(CehcboxField): add stretch modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Jul 12, 2019
1 parent e3fd010 commit aa3f9e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CheckboxField/CheckboxField.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type CheckboxFieldProps = {
disabled ?: boolean,
/** no wrap text */
nowrap?: boolean,
/** when true then stretch to the maximal width */
stretch?: boolean,
};

const CheckboxField = ({
Expand All @@ -36,7 +38,7 @@ const CheckboxField = ({
const hasError = formUtils.hasError(meta);

return (
<FormField { ...rest } input={ input } meta={ meta }>
<FormField { ...rest } input={ input } meta={ meta } stretch={ stretch }>
<Checkbox
label={ label }
name={ name }
Expand Down

0 comments on commit aa3f9e0

Please sign in to comment.