MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / EntitySearch

Function EntitySearch

src/components/entity-components.tsx:116–132  ·  view source on GitHub ↗
({
  value,
  onChange,
  placeholder = "Search",
}: EntitySearchProps)

Source from the content-addressed store, hash-verified

114};
115
116export const EntitySearch = ({
117 value,
118 onChange,
119 placeholder = "Search",
120}: EntitySearchProps) => {
121 return (
122 <div className="relative ml-auto">
123 <SearchIcon className="size-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground" />
124 <Input
125 className="max-w-[200px] bg-background shadow-none border-border pl-8"
126 placeholder={placeholder}
127 value={value}
128 onChange={(e) => onChange(e.target.value)}
129 />
130 </div>
131 );
132};
133
134interface EntityPaginationProps {
135 page: number;

Callers

nothing calls this directly

Calls 1

onChangeFunction · 0.85

Tested by

no test coverage detected