Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import Evals from ./evals.
import { EvalsScreen } from "@/components/ui/evals";
export default function Page() {
return <EvalsScreen workspace="Acme" user={{ name: "Alex Morgan" }} onNavigate={(label) => router.push(routes[label])} />;
}| Name | Type | Default | Description |
|---|---|---|---|
| onNavigate | (label: string) => void | Called with the label of a sidebar item | |
| workspace | string | "Acme" | Workspace name in the sidebar |
| user | { name: string; avatar?: string } | { name: "Alex Morgan" } | Account at the bottom of the sidebar |
| loading | boolean | While your data loads: gray key figures, chart, prompt change and test case rows in the shape of the real ones; the header, filters and Run eval stay | |
| empty | boolean | A new prompt with no test cases: the header stays at v1, key figures, chart and prompt change hide, and the test cases show “No test cases yet” with an Add test case button | |
| onAddCase | () => void | Called by the empty state’s Add test case button | |
| className | string | Extra class on the root |
Fills its container – give it the full viewport height in your app
Below 1000px the right column moves under the table; the table scrolls sideways on phones
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"; colors are CSS variables on .ui-as