-
Notifications
You must be signed in to change notification settings - Fork 5
/
App.jsx
116 lines (113 loc) · 3.88 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import SemanticAutocomplete from "../../src/SemanticAutocomplete";
import { TextField } from "@mui/material";
function App() {
const options = [
{ label: "Spoon", value: 1 },
{ label: "Fork", value: 2 },
{ label: "Knife", value: 3 },
{ label: "Plate", value: 4 },
{ label: "Cup", value: 5 },
{ label: "Mug", value: 6 },
{ label: "Bowl", value: 7 },
{ label: "Teapot", value: 8 },
{ label: "Frying Pan", value: 9 },
{ label: "Saucepan", value: 10 },
{ label: "Spatula", value: 11 },
{ label: "Whisk", value: 12 },
{ label: "Oven Mitt", value: 13 },
{ label: "Cutting Board", value: 14 },
{ label: "Measuring Cup", value: 15 },
{ label: "Blender", value: 16 },
{ label: "Toaster", value: 17 },
{ label: "Microwave", value: 18 },
{ label: "Refrigerator", value: 19 },
{ label: "Dishwasher", value: 20 },
{ label: "Table", value: 21 },
{ label: "Chair", value: 22 },
{ label: "Sofa", value: 23 },
{ label: "Lamp", value: 24 },
{ label: "Bookshelf", value: 25 },
{ label: "Bed", value: 26 },
{ label: "Mattress", value: 27 },
{ label: "Pillow", value: 28 },
{ label: "Blanket", value: 29 },
{ label: "Dresser", value: 30 },
{ label: "Mirror", value: 31 },
{ label: "Alarm Clock", value: 32 },
{ label: "Curtains", value: 33 },
{ label: "Rug", value: 34 },
{ label: "Trash Can", value: 35 },
{ label: "Laundry Basket", value: 36 },
{ label: "Washing Machine", value: 37 },
{ label: "Dryer", value: 38 },
{ label: "Iron", value: 39 },
{ label: "Vacuum Cleaner", value: 40 },
{ label: "Broom", value: 41 },
{ label: "Mop", value: 42 },
{ label: "Bucket", value: 43 },
{ label: "Garden Hose", value: 44 },
{ label: "Rake", value: 45 },
{ label: "Shovel", value: 46 },
{ label: "Lawn Mower", value: 47 },
{ label: "Hammer", value: 48 },
{ label: "Screwdriver", value: 49 },
{ label: "Wrench", value: 50 },
{ label: "Drill", value: 51 },
{ label: "Saw", value: 52 },
{ label: "Nails", value: 53 },
{ label: "Screws", value: 54 },
{ label: "Bolts", value: 55 },
{ label: "Paint Brush", value: 56 },
{ label: "Roller", value: 57 },
{ label: "Paint", value: 58 },
{ label: "Vase", value: 59 },
{ label: "Picture Frame", value: 60 },
{ label: "Candle", value: 61 },
{ label: "Book", value: 62 },
{ label: "Magazine", value: 63 },
{ label: "Remote Control", value: 64 },
{ label: "TV", value: 65 },
{ label: "Speaker", value: 66 },
{ label: "Laptop", value: 67 },
{ label: "Phone", value: 68 },
{ label: "Charger", value: 69 },
{ label: "Flashlight", value: 70 },
{ label: "Bicycle", value: 71 },
{ label: "Skateboard", value: 72 },
{ label: "Helmet", value: 73 },
{ label: "Ball", value: 74 },
{ label: "Gloves", value: 75 },
{ label: "Scarf", value: 76 },
{ label: "Umbrella", value: 77 },
{ label: "Backpack", value: 78 },
{ label: "Wallet", value: 79 },
{ label: "Keys", value: 80 },
{ label: "Sunglasses", value: 81 },
{ label: "Watch", value: 82 },
{ label: "Fitness Tracker", value: 83 },
{ label: "Yoga Mat", value: 84 },
{ label: "Treadmill", value: 85 },
{ label: "Weights", value: 86 },
{ label: "Swimsuit", value: 87 },
{ label: "Towel", value: 88 },
{ label: "Shampoo", value: 89 },
{ label: "Soap", value: 90 },
{ label: "Toothbrush", value: 91 },
{ label: "Toothpaste", value: 92 },
{ label: "Floss", value: 93 },
{ label: "Razor", value: 94 },
{ label: "Deodorant", value: 95 },
{ label: "Perfume", value: 96 },
{ label: "Makeup", value: 97 },
{ label: "Hairbrush", value: 98 },
];
return (
<SemanticAutocomplete
freeSolo
options={options}
threshold={0.6}
renderInput={(params) => <TextField {...params} />}
/>
);
}
export default App;