跳到正文
Linasan UI

Input 输入框

单行文本输入,InputGroup 可以带图标、后缀和按钮。

GB

inputClass 是输入框的样式,自己写的类似控件可以复用。

安装

pnpm dlx shadcn@latest add https://docs.linasan.cn/r/input.json

第一次装本站的组件前先在项目里执行一次 shadcn init,详见 安装。

用法

import { Input, InputGroup } from '@/components/ui/input';

<InputGroup icon={<Search />} placeholder="搜索" />

属性

属性

类型

本页目录