MiHCM
primitives/@mihcm/ui·v0.21.0·stable

SearchField

Sugar wrapper around Input that ships the magnifier glyph, a clear button, and role="search". Universal across web and native.

Live preview

Adjust the controls on the right; the preview and code update in real time.

example.tsxtsx
import { SearchField } from '@mihcm/ui/SearchField';

export function Example() {
  return (
    <SearchField
  size="md"
    >
      Search…
    </SearchField>
  );
}

Install

Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.

npx @mihcm/cli add SearchField
Copies the source into components/ds/SearchField.tsx. You own the file. Use --out to override the directory or --force to overwrite.