feat(Textarea): add css prop

This commit is contained in:
Aminejv 2021-10-26 16:42:31 +01:00
parent 18ec27ea7f
commit 987d6d14e6

View File

@ -45,17 +45,7 @@ const STYLES_TEXTAREA = css`
export class Textarea extends React.Component { export class Textarea extends React.Component {
render() { render() {
return ( const { css, ...props } = this.props;
<TextareaAutoSize return <TextareaAutoSize css={[STYLES_TEXTAREA, css]} {...props} />;
css={STYLES_TEXTAREA}
style={this.props.style}
onChange={this.props.onChange}
placeholder={this.props.placeholder}
name={this.props.name}
value={this.props.value}
readOnly={this.props.readOnly}
maxLength={this.props.maxLength}
/>
);
} }
} }