mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 14:07:20 +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 {
|
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}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user