From fc419926611bcd11fd3ad10bd374bd4aafa8f028 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Fri, 15 Nov 2024 00:52:43 +0800 Subject: [PATCH] refactor(docs): divider dx --- .../content/components/divider/usage.raw.jsx | 20 ++++++++++++++++++ apps/docs/content/components/divider/usage.ts | 21 +------------------ 2 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 apps/docs/content/components/divider/usage.raw.jsx diff --git a/apps/docs/content/components/divider/usage.raw.jsx b/apps/docs/content/components/divider/usage.raw.jsx new file mode 100644 index 0000000000..580e85126f --- /dev/null +++ b/apps/docs/content/components/divider/usage.raw.jsx @@ -0,0 +1,20 @@ +import {Divider} from "@nextui-org/react"; + +export default function App() { + return ( +
+
+

NextUI Components

+

Beautiful, fast and modern React UI library.

+
+ +
+
Blog
+ +
Docs
+ +
Source
+
+
+ ); +} diff --git a/apps/docs/content/components/divider/usage.ts b/apps/docs/content/components/divider/usage.ts index d3509c6414..1118304c37 100644 --- a/apps/docs/content/components/divider/usage.ts +++ b/apps/docs/content/components/divider/usage.ts @@ -1,23 +1,4 @@ -const App = `import {Divider} from "@nextui-org/react"; - -export default function App() { - return ( -
-
-

NextUI Components

-

Beautiful, fast and modern React UI library.

-
- -
-
Blog
- -
Docs
- -
Source
-
-
- ); -}`; +import App from "./usage.raw.jsx?raw"; const react = { "/App.jsx": App,