Skip to content

Commit e911d57

Browse files
committed
fix readme
1 parent fe91483 commit e911d57

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,24 +120,6 @@ export default App;
120120
| dropDownBorderRadius | string | Border radius of the dropdown. | '8px' |
121121
| scrollBarColor | string | Color of the scrollbar inside the dropdown. | #ccc |
122122

123-
## Example
124-
125-
### Basic Example
126-
127-
```tsx
128-
<SearchBar
129-
fetchData={async (query: string) => {
130-
const response = await fetch('https://api.example.com/search?q=${query}');
131-
return response.json();
132-
}}
133-
renderItem={(item) => <div>{item.name}</div>}
134-
onSelect={(item) => console.log('Selected:', item)}
135-
placeholder='Search for items...'
136-
loadingElement={<div>Loading...</div>}
137-
emptyElement={<div>No results found</div>}
138-
/>
139-
```
140-
141123
## License
142124

143125
This project is licensed under the MIT License. See the [LICENSE](https://github.com/ghosnkarl/react-api-search/blob/main/LICENSE) file for more information.

0 commit comments

Comments
 (0)