Σ SigmaUI 0.1 preview
SIGMAUI / DOCUMENTATION

Next.js integration

Use server primitives and explicit interactive client boundaries.

App Router

Import CSS in app/layout.tsx. Static components live in server.tsx, while interactive controls and SigmaUIProvider preserve use client in their emitted module. Passing callbacks requires a client parent. Studio is dynamically loaded only on its route.

// app/layout.tsx
import "@sigma-ai/ui/styles.css";
// app/page.tsx
import { Card } from "@sigma-ai/ui";
export default function Page() { return <Card title="Server rendered" />; }

Deployment

The website uses Next standalone output traced from sigmaui/. The packaging script discovers the generated entry point and copies public plus .next/static adjacent to it. It runs at the hostname root, with no basePath.