> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skybridge.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Generative UI

> LLM-generated dynamic UIs with json-render and shadcn/ui components.

Generative UI lets the LLM compose rich interfaces on the fly using [json-render](https://json-render.dev) and 36 pre-built shadcn/ui components. The AI generates a json-render spec, the server validates it against the component catalog, and the view renders it instantly.

Generate a dashboard UI for me.

Generative UI

![Generative UI showcase](https://docs.skybridge.tech/images/showcase-generative-ui.png)

> [card] [Try the demo](https://generative-ui.skybridge.tech/try)
>
> Launch the live view.

> [card] [View source](https://github.com/alpic-ai/skybridge/tree/main/examples/generative-ui)
>
> Browse the example code.

## How it works

The MCP server builds a json-render catalog from `@json-render/shadcn` and embeds the auto-generated component documentation in the `render` tool description. When the LLM calls the tool, it passes a `{ root, elements }` spec as input. The server validates the spec against the catalog, auto-fixes common mistakes, and returns it to the view as structured content.

The view renders the spec with `@json-render/react`'s `Renderer` and `JSONUIProvider`, using the pre-built shadcn component registry.

## Skybridge APIs used

* [`useToolInfo`](https://docs.skybridge.tech/api-reference/use-tool-info)

## Third-party integrations

* [`@json-render/core`](https://github.com/vercel-labs/json-render) — catalog, validation, prompt generation
* [`@json-render/react`](https://github.com/vercel-labs/json-render) — Renderer, JSONUIProvider, defineRegistry
* [`@json-render/shadcn`](https://github.com/vercel-labs/json-render) — 36 pre-built shadcn/ui components


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.