import _extends from "@babel/runtime/helpers/esm/extends";
import React, { forwardRef } from "react";
import classnames from "classnames";
import { StyledTextarea } from "./Styles";
export const Textarea = /*#__PURE__*/forwardRef((_ref, ref) => {
  let {
    className,
    disabled = false,
    invalid = false,
    mode = "outlined",
    ...rest
  } = _ref;
  return /*#__PURE__*/React.createElement(StyledTextarea, _extends({}, rest, {
    $invalid: invalid,
    ref: ref,
    $mode: mode,
    disabled: disabled,
    "aria-invalid": invalid,
    className: classnames("c-textarea", {
      "c-textarea__disabled": disabled
    }, className)
  }));
});
Textarea.displayName = "Textarea";
//# sourceMappingURL=Textarea.js.map