mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 05:54:49 +03:00
feat(Textarea): add css prop
This commit is contained in:
parent
18ec27ea7f
commit
987d6d14e6
@ -45,17 +45,7 @@ const STYLES_TEXTAREA = css`
|
||||
|
||||
export class Textarea extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<TextareaAutoSize
|
||||
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}
|
||||
/>
|
||||
);
|
||||
const { css, ...props } = this.props;
|
||||
return <TextareaAutoSize css={[STYLES_TEXTAREA, css]} {...props} />;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user