diff --git a/docs/.env.development b/docs/.env.development index e348e032b..5678937ad 100644 --- a/docs/.env.development +++ b/docs/.env.development @@ -1 +1 @@ -NEXT_PUBLIC_DEMO_URL=https://demo.master.forui.dev/card \ No newline at end of file +NEXT_PUBLIC_DEMO_URL=https://dev.demo.forui.dev \ No newline at end of file diff --git a/docs/components/widget.tsx b/docs/components/widget.tsx index 667bc5b09..3048f588f 100644 --- a/docs/components/widget.tsx +++ b/docs/components/widget.tsx @@ -3,20 +3,21 @@ import {useTheme} from "nextra-theme-docs"; interface Props { name: string; variant?: string; + height?: number; query: Record; } -export function Widget({name, variant = 'default', query}: Props) { +export function Widget({name, variant = 'default', height = 200, query}: Props) { const {resolvedTheme} = useTheme(); - query['theme'] = resolvedTheme; + query['theme'] = `zinc-${resolvedTheme}`; const url = process.env['NEXT_PUBLIC_DEMO_URL']; return (