MCPcopy Create free account
hub / github.com/fkhadra/react-contexify / Select

Function Select

example/components/Select.tsx:10–20  ·  view source on GitHub ↗
({ name, value, data, onChange, ...rest }: SelectProps)

Source from the content-addressed store, hash-verified

8}
9
10export function Select({ name, value, data, onChange, ...rest }: SelectProps) {
11 return (
12 <select name={name} id={name} value={value} onChange={onChange} {...rest}>
13 {data.map(item => (
14 <option key={item} value={item}>
15 {item}
16 </option>
17 ))}
18 </select>
19 );
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…