adk-ui 2.1.0

Dynamic UI generation for ADK-Rust agents - render forms, cards, tables, charts and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { lazy, StrictMode, Suspense } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import { resolveShowcaseExampleId } from './showcase/route'

const App = lazy(() => import('./App.tsx'))
const ShowcasePage = lazy(() => import('./showcase/ShowcasePage').then((module) => ({ default: module.ShowcasePage })))

const showcaseExampleId = resolveShowcaseExampleId()

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <Suspense fallback={<div className="route-loading">Loading interface...</div>}>
      {showcaseExampleId ? <ShowcasePage exampleId={showcaseExampleId} /> : <App />}
    </Suspense>
  </StrictMode>,
)