Markdown is supported.
CLI
手动安装
CLI 将组件源(及其内部依赖项)复制到您的项目中并安装任何所需的 npm 包。
npx boardui@latest add textarea使用共享 UI 包或自定义导入别名? 配置您的安装路径 在运行 CLI 之前。复制粘贴示例使用默认导入。
尺寸
medium 和 small 比赛 输入框的插图,因此两个组件以无接缝的形式堆叠。 rows 设置静止高度。
Medium is the default, 14px type in a 8px shell.
Small tightens the horizontal inset to match a small input.
自动调整大小
autoResize 将该字段与文本一起增长,一次一行,在 rows 和 maxRows。它滚动越过天花板。每次更改时高度都是从零开始测量的,因此当删除文本时该字段会缩小。
The field grows to eight lines, then scrolls.
字符数
showCount 将计数器放在提示行上。与 maxLength 它读着 12/160 并且浏览器强制执行该限制;没有一个它只是计数。
Appears on your public profile.49/160
状态
将鼠标悬停并聚焦使环交叉淡入淡出。 isDisabled 和 isInvalid 覆盖两者并重新绘制字段、提示和标签。 resize="none" 当固定高度比读者的舒适度更重要时,会删除原生手柄。
This is a hint about this field.
This is a hint about this field.
This is a hint about this field.
Please write at least 200 characters.