Skip to content

The Open Standard for Generative UI

Update the examples doc with updated links and buttons instead of text (#123)

Hrijul Bhatnagard20b5952be5c
diff --git a/docs/docs/examples.md b/docs/docs/examples.mdx
similarity index 65%
rename from docs/docs/examples.md
rename to docs/docs/examples.mdx
index 63829d78a..5ae51017a 100644
--- a/docs/docs/examples.md
+++ b/docs/docs/examples.mdx
@@ -15,7 +15,16 @@ A TypeScript-based cookbook application that showcases how to integrate Crayon w
- Real-time recipe generation
- Integration with OpenAI's API
-<ins>[View Simple Cookbook Example →](https://github.com/thesysdev/examples/tree/main/simple-cookbook)</ins>
+<button
+ className="button button--primary"
+ onClick={() =>
+ window.open(
+ "https://github.com/thesysdev/examples/tree/main/crayon/simple-cookbook",
+ "_blank"
+ )
+ }
+ children={<>View Simple Cookbook Example →</>}
+/>
## Fino Crayon
@@ -25,4 +34,14 @@ A Next.js project that demonstrates more advanced usage of Crayon by building a
- Database integration with Prisma
- Full-stack implementation
-<ins>[View Fino Crayon Example →](https://github.com/thesysdev/examples/tree/main/fino-crayon)</ins>
+<button
+ className="button button--primary"
+ onClick={() =>
+ window.open(
+ "https://github.com/thesysdev/examples/tree/main/crayon/fino-crayon",
+ "_blank"
+ )
+ }
+ children={<>View Fino Crayon Example →</>}
+/>
+