textareaField.tsx 540 B

123456789101112131415161718192021
  1. import InputField from 'sentry/components/deprecatedforms/inputField';
  2. type State = InputField['state'] & {
  3. value?: string;
  4. };
  5. export default class TextareaField extends InputField<InputField['props'], State> {
  6. getField() {
  7. return (
  8. <textarea
  9. id={this.getId()}
  10. className="form-control"
  11. value={this.state.value}
  12. disabled={this.props.disabled}
  13. required={this.props.required}
  14. placeholder={this.props.placeholder}
  15. onChange={this.onChange.bind(this)}
  16. />
  17. );
  18. }
  19. }