diff --git a/README.md b/README.md index 20e42fd..ab56a80 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ 
- + ⭐ Live Demo
diff --git a/docs/app/_components/StackBlitz.tsx b/docs/app/_components/StackBlitz.tsx index de7e5c6..66484fb 100644 --- a/docs/app/_components/StackBlitz.tsx +++ b/docs/app/_components/StackBlitz.tsx @@ -3,79 +3,77 @@ import * as React from "react"; export const examples = { - adminRich: { - path: "github/bknd-io/bknd-examples", - startScript: "example-admin-rich", - initialPath: "/data/schema" - } + adminRich: { + path: "github/bknd-io/bknd-examples", + startScript: "example-admin-rich", + initialPath: "/data/schema", + }, }; export const StackBlitz = ({ - path, - ratio = 9 / 16, - example, - ...props + path, + ratio = 9 / 16, + example, + ...props }: { - path?: string; - ratio?: number; - example?: keyof typeof examples; - [key: string]: unknown; + path?: string; + ratio?: number; + example?: keyof typeof examples; + [key: string]: unknown; }) => { - const selected = example ? examples[example] : undefined; - const finalPath = path || selected?.path || "github/bknd-io/bknd-examples"; + const selected = example ? examples[example] : undefined; + const finalPath = path || selected?.path || "github/bknd-io/bknd-examples"; - const params = new URLSearchParams({ - ctl: "1", - hideExplorer: "1", - embed: "1", - view: "preview", - ...(selected || {}), - ...props - }); + const params = new URLSearchParams({ + ctl: "1", + hideExplorer: "1", + embed: "1", + view: "preview", + ...(selected || {}), + ...props, + }); - const url = new URL( - `https://stackblitz.com/${finalPath}?${params.toString()}` - ); + const url = new URL(`https://stackblitz.com/${finalPath}?${params.toString()}`); - return ( - <> -