MCPcopy Create free account
hub / github.com/composify-js/composify / SearchForm

Function SearchForm

packages/react/src/editor/SearchForm/SearchForm.tsx:9–28  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

7};
8
9export const SearchForm: FC<Props> = ({ children }) => {
10 const [query, setQuery] = useState('');
11
12 return (
13 <>
14 <div className={styles.container}>
15 <input
16 className={styles.input}
17 name="search"
18 type="text"
19 value={query}
20 onChange={(e) => setQuery(e.target.value)}
21 placeholder="Search component"
22 />
23 <SearchIcon size={16} />
24 </div>
25 {children(query)}
26 </>
27 );
28};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected