diff --git a/app/page.tsx b/app/page.tsx index 3796ad8..de120ce 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -24,94 +24,94 @@ export default function Home() { } return ( -
-
-
-

- 🥞 Les Crêpes de Maîtres -

-

- Famous French Chefs' Crêpe Recipes -

-

- Powered by json-render ✨ -

-
-
- -
-
-

- ℹ️ About This Demo -

-

- This application demonstrates json-render by Vercel Labs — - a library that enables AI-generated UIs with guardrailed components. -

-

- Below, each recipe is defined as a JSON specification and - rendered through the Renderer component - using our type-safe component catalog. -

-

- In production, AI would generate these specs from user prompts—safely constrained - to only use components we've defined (RecipeHeader, ChefInfo, IngredientList, etc.). -

-
-

- Guardrailed -

-

- AI can only use components in your catalog + +

+
+
+

+ 🥞 Les Crêpes de Maîtres +

+

+ Famous French Chefs' Crêpe Recipes

-

- Predictable -

-

- JSON output matches your schema, every time -

-

- Fast -

-

- Stream and render progressively as the model responds +

+ Powered by json-render

- -
+ - {recipes.map((recipe, index) => ( -
- +
+
+

+ ℹ️ About This Demo +

+

+ This application demonstrates json-render by Vercel Labs — + a library that enables AI-generated UIs with guardrailed components. +

+

+ Below, each recipe is defined as a JSON specification and + rendered through the Renderer component + using our type-safe component catalog. +

+

+ In production, AI would generate these specs from user prompts—safely constrained + to only use components we've defined (RecipeHeader, ChefInfo, IngredientList, etc.). +

+
+

+ Guardrailed +

+

+ AI can only use components in your catalog +

+

+ Predictable +

+

+ JSON output matches your schema, every time +

+

+ Fast +

+

+ Stream and render progressively as the model responds +

+
+ +
+ + {recipes.map((recipe, index) => ( +
- -
- ))} -
+
+ ))} +
- -
+ + + ); } diff --git a/lib/registry.tsx b/lib/registry.tsx index 98526ed..68b239c 100644 --- a/lib/registry.tsx +++ b/lib/registry.tsx @@ -113,15 +113,15 @@ export const { registry } = defineRegistry(catalog, { }, }); -// Provider wrapper for all required contexts +// Provider wrapper for all required contexts - wraps entire app once export function Provider({ children }: { children: ReactNode }) { return ( - - - + + + {children} - - - + + + ); }