mirror of
https://github.com/wassname/talk.git
synced 2026-08-07 11:29:44 +08:00
21 lines
487 B
JavaScript
21 lines
487 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 {name, className, onChange, label, rows, value, style} = this.props;
|
|
return (
|
|
<TextFieldMDL
|
|
name={name}
|
|
className={className}
|
|
onChange={onChange}
|
|
label={label}
|
|
rows={rows}
|
|
value={value}
|
|
style={style}
|
|
/>
|
|
);
|
|
}
|
|
}
|