MCPcopy Create free account
hub / github.com/react-component/select / Test

Function Test

docs/examples/multiple-readonly.tsx:17–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17const Test: React.FC = () => {
18 const [value, setValue] = React.useState<string[]>(['b11']);
19
20 const onChange = (v: any) => {
21 console.log('onChange', v);
22 setValue(v);
23 };
24
25 return (
26 <div>
27 <h2>multiple readonly default selected item</h2>
28 <div style={{ width: 300 }}>
29 <Select
30 mode="multiple"
31 value={value}
32 animation="slide-up"
33 choiceTransitionName="rc-select-selection__choice-zoom"
34 style={{ width: 500 }}
35 optionFilterProp="children"
36 optionLabelProp="children"
37 placeholder="please select"
38 onChange={onChange}
39 >
40 {children}
41 </Select>
42 </div>
43 </div>
44 );
45};
46
47export default Test;
48/* eslint-enable */

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…