-
Notifications
You must be signed in to change notification settings - Fork 441
Expand file tree
/
Copy pathApp.tsx
More file actions
64 lines (55 loc) · 2 KB
/
App.tsx
File metadata and controls
64 lines (55 loc) · 2 KB
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
/* eslint-disable react/react-in-jsx-scope */
import { version } from '@docsearch/react';
import type { JSX } from 'react';
import './App.css';
import '@docsearch/css/dist/style.css';
import Basic from './examples/basic';
import BasicAskAI from './examples/basic-askai';
import MultiIndex from './examples/multi-index';
import WHitComponent from './examples/w-hit-component';
import WTransformItems from './examples/w-hit-transformItems';
function App(): JSX.Element {
return (
<div className="body-container">
<div className="app-container">
<header className="app-header">
<h1 className="app-title">DocSearch v{version}</h1>
<p className="app-subtitle">Experience the power of intelligent documentation search</p>
</header>
<main>
<section className="demo-section">
<p className="section-description">basic search functionality</p>
<div className="search-wrapper">
<Basic />
</div>
</section>
<section className="demo-section">
<p className="section-description">search with askai integration</p>
<div className="search-wrapper">
<BasicAskAI />
</div>
</section>
<section className="demo-section">
<p className="section-description">custom hit rendering</p>
<div className="search-wrapper">
<WHitComponent />
</div>
</section>
<section className="demo-section">
<p className="section-description">transform items before rendering</p>
<div className="search-wrapper">
<WTransformItems />
</div>
</section>
<section className="demo-section">
<p className="section-description">multi index search</p>
<div className="search-wrapper">
<MultiIndex />
</div>
</section>
</main>
</div>
</div>
);
}
export default App;