From 9453ce98d0cf4b355cf1ef037af5dde91f7ece8c Mon Sep 17 00:00:00 2001 From: lerte smith Date: Thu, 17 Oct 2024 18:19:18 +0800 Subject: [PATCH] fix tabs in DocPreview --- apps/docs/src/components/DocPreview.tsx | 71 ++++++++++++++++--------- 1 file changed, 46 insertions(+), 25 deletions(-) diff --git a/apps/docs/src/components/DocPreview.tsx b/apps/docs/src/components/DocPreview.tsx index 09c4f29..8a3b3d6 100644 --- a/apps/docs/src/components/DocPreview.tsx +++ b/apps/docs/src/components/DocPreview.tsx @@ -13,31 +13,52 @@ type CodePreviewProps = { const DocPreview = ({ code = '' }: CodePreviewProps) => { return ( - -
- - - visibility - Preview - - - code - Code - - -
- - - - - - {code} - - -
+
+ + + visibility + Preview + + } + > +
+ +
+
+ + + + + + + + + Code + + } + > +
+ {code} +
+
+
+
) }