mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
22 lines
530 B
JavaScript
22 lines
530 B
JavaScript
import React, {Component} from 'react';
|
|
import {Textfield as TextFieldMDL} from 'react-mdl';
|
|
import 'material-design-lite';
|
|
|
|
export default class TextField extends Component {
|
|
render() {
|
|
const {className, onChange, rows, questionBoxContent} = this.props;
|
|
return (
|
|
<TextFieldMDL
|
|
className={className}
|
|
onChange={onChange}
|
|
label=""
|
|
rows={rows}
|
|
id="qboxcontent"
|
|
value={questionBoxContent}
|
|
expandable={false}
|
|
style={{width: '100%'}}
|
|
/>
|
|
);
|
|
}
|
|
}
|