响应式搜索表单组件,支持动态列数、展开/收起功能。
npx shadcn@latest add http://localhost:3000/r/search-form.json
yarn dlx shadcn@latest add http://localhost:3000/r/search-form.json
pnpm dlx shadcn@latest add http://localhost:3000/r/search-form.json
bunx shadcn@latest add http://localhost:3000/r/search-form.json
deno run npm:shadcn@latest npm:add http://localhost:3000/r/search-form.json
通过 cols 属性配置不同屏幕尺寸下每行显示的列数。
cols
通过 actions 属性自定义操作按钮区域。
actions
当表单项数量较多时,会自动显示展开/收起按钮。
FormInstance<unknown>
-
{ xs?: number; sm?: number; md?: number; lg?: number; xl?: number; xxl?: number; }
{ xs: 1, sm: 2, md: 3, lg: 4 }
string
number
2
boolean
true
重置
查询
(values: Record<string, any>) => void
() => void
ReactNode
66
<576px
≥576px
≥768px
≥992px
≥1200px
≥1600px
每个 breakpoint 的值代表该屏幕尺寸下一行显示的列数。