UNPKG

@blueprintjs/core

Version:
24 lines 1.03 kB
/* * Copyright 2017 Palantir Technologies, Inc. All rights reserved. * * Licensed under the terms of the LICENSE file distributed with this project. */ import classNames from "classnames"; import * as React from "react"; import * as Classes from "../../common/classes"; import { DISPLAYNAME_PREFIX } from "../../common/props"; // this component is simple enough that tests would be purely tautological. /* istanbul ignore next */ export class TextArea extends React.PureComponent { render() { const { className, fill, inputRef, intent, large, small, ...htmlProps } = this.props; const rootClasses = classNames(Classes.INPUT, Classes.intentClass(intent), { [Classes.FILL]: fill, [Classes.LARGE]: large, [Classes.SMALL]: small, }, className); return React.createElement("textarea", Object.assign({}, htmlProps, { className: rootClasses, ref: inputRef })); } } TextArea.displayName = `${DISPLAYNAME_PREFIX}.TextArea`; //# sourceMappingURL=textArea.js.map