()
| 127 | ); |
| 128 | |
| 129 | const Installation = () => { |
| 130 | const [selectedMethod, setSelectedMethod] = useState('manual'); |
| 131 | |
| 132 | useScrollToTop(); |
| 133 | |
| 134 | return ( |
| 135 | <section className="docs-section"> |
| 136 | <h3 className="docs-category-title">Installation</h3> |
| 137 | |
| 138 | <p className="docs-paragraph dim">Using components is very straightforward, anyone can do it.</p> |
| 139 | |
| 140 | <hr className="docs-separator" /> |
| 141 | |
| 142 | <h3 className="docs-category-title">Pick The Method</h3> |
| 143 | |
| 144 | <p className="docs-paragraph"> |
| 145 | You can keep it simple and copy code directly from the documentation, or you can use CLI commands to install |
| 146 | components into your project. |
| 147 | </p> |
| 148 | |
| 149 | <p className="docs-paragraph dim">Click the cards below to change your preferred method.</p> |
| 150 | |
| 151 | <MethodSelector methods={METHODS} selected={selectedMethod} onSelect={setSelectedMethod} /> |
| 152 | |
| 153 | <h3 className="docs-category-title">Steps</h3> |
| 154 | |
| 155 | {selectedMethod === 'manual' ? <ManualSteps /> : <CliSteps />} |
| 156 | |
| 157 | <hr className="docs-separator" /> |
| 158 | |
| 159 | <h4 className="docs-category-subtitle">That's all!</h4> |
| 160 | |
| 161 | <p className="docs-paragraph"> |
| 162 | From here on, it's all about how you integrate the component into your project. The code is yours to play |
| 163 | around with - modify styling, functionalities, anything goes! |
| 164 | </p> |
| 165 | |
| 166 | <DocsButtonBar |
| 167 | next={{ label: 'MCP Server', route: '/get-started/mcp' }} |
| 168 | previous={{ label: 'Introduction', route: '/get-started/introduction' }} |
| 169 | /> |
| 170 | </section> |
| 171 | ); |
| 172 | }; |
| 173 | |
| 174 | export default Installation; |
nothing calls this directly
no test coverage detected