Documentation
ModSearchField
Generic mod search field: uncontrolled input, 12 GUI px high.
import { ModSearchField } from "./index";
export function ModSearchFieldDemo() {
return (
<div className="relative h-12 w-48">
<ModSearchField left={0} placeholder="搜索…" top={0} />
</div>
);
}
Install
$pnpm add @tennantite/commonnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/mods-core/src/shared/mod-search-field/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.