# MMTextarea 多行文本

# Props

# ITextareaProps

属性 类型 默认值 必传 说明
showLimit boolean 是否显示限制输入
height number 输入框高度

# 代码示例

import Taro from "@tarojs/taro";
import { FC, memo, useState } from "react";
import { View } from "@tarojs/components";
import styles from "./index.module.less";
import MMNavigation from "@wmeimob/taro-design/src/components/navigation";
import MMTextarea from "../../components/textarea";

interface ITextareaProps {}

const Component: FC<ITextareaProps> = () => {
  const [value, setValue] = useState("");
  return (
    <View className={styles.textareaStyle}>
      <MMNavigation title="textarea" />
      <View className={styles.textarea}>
        <MMTextarea
          value={value}
          showLimitTip
          maxlength={200}
          onChange={setValue}
        />
      </View>
    </View>
  );
};

const Textarea = memo(Component);
export default Textarea;