Skip to content

Commit

Permalink
feat(TextArea): stretch modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Dec 29, 2018
1 parent 916de2c commit 209fb49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/TextArea/TextArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type TextAreaProps = {|
placeholder?: string,
rows?: number,
value?: string,
stretch?: boolean,
|};

const name = 'textArea';
Expand All @@ -29,6 +30,12 @@ const theme = createComponentTheme(name, ({ COLORS, SIZES }: *) => ({
color: COLORS.PLACEHOLDER_COLOR,
},
},
modifiers: {
stretch: {
height: '100%',
width: '100%',
},
},
}));

const StyledTag = createStyledTag(name, {
Expand Down
1 change: 1 addition & 0 deletions src/components/TextAreaField/TextAreaField.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function TextAreaField({
value={ value }
cols={ cols }
rows={ rows }
stretch={ stretch }
/>
</FormField>
);
Expand Down

0 comments on commit 209fb49

Please sign in to comment.