diff --git a/apps/docs/content/components/badge/a11y.raw.jsx b/apps/docs/content/components/badge/a11y.raw.jsx
new file mode 100644
index 0000000000..6e8fe17155
--- /dev/null
+++ b/apps/docs/content/components/badge/a11y.raw.jsx
@@ -0,0 +1,31 @@
+import {Badge, Button} from "@nextui-org/react";
+
+export const NotificationIcon = ({size, height, width, ...props}) => {
+ return (
+
+ );
+};
+
+export default function App() {
+ return (
+
+
+
+ );
+}
diff --git a/apps/docs/content/components/badge/a11y.ts b/apps/docs/content/components/badge/a11y.ts
index ede5ba5ed3..e53640d68b 100644
--- a/apps/docs/content/components/badge/a11y.ts
+++ b/apps/docs/content/components/badge/a11y.ts
@@ -1,44 +1,7 @@
-export const NotificationIcon = `export const NotificationIcon = ({size, height, width, ...props}) => {
- return (
-
- );
-};`;
-
-const App = `import {Badge, Button} from "@nextui-org/react";
-import {NotificationIcon} from "./NotificationIcon";
-
-export default function App() {
- return (
-
-
-
- );
-}`;
+import App from "./a11y.raw.jsx?raw";
const react = {
"/App.jsx": App,
- "/NotificationIcon.jsx": NotificationIcon,
};
export default {
diff --git a/apps/docs/content/components/badge/colors.raw.jsx b/apps/docs/content/components/badge/colors.raw.jsx
new file mode 100644
index 0000000000..b7358bee7e
--- /dev/null
+++ b/apps/docs/content/components/badge/colors.raw.jsx
@@ -0,0 +1,26 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export default function App() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/apps/docs/content/components/badge/colors.ts b/apps/docs/content/components/badge/colors.ts
index 1a79742830..d5bef810aa 100644
--- a/apps/docs/content/components/badge/colors.ts
+++ b/apps/docs/content/components/badge/colors.ts
@@ -1,47 +1,4 @@
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-
-export default function App() {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}`;
+import App from "./colors.raw.jsx?raw";
const react = {
"/App.jsx": App,
diff --git a/apps/docs/content/components/badge/content-examples.raw.jsx b/apps/docs/content/components/badge/content-examples.raw.jsx
new file mode 100644
index 0000000000..0850c9000d
--- /dev/null
+++ b/apps/docs/content/components/badge/content-examples.raw.jsx
@@ -0,0 +1,80 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export const NotificationIcon = ({size, height, width, ...props}) => {
+ return (
+
+ );
+};
+
+export const CheckIcon = ({size, height, width, ...props}) => {
+ return (
+
+ );
+};
+
+export default function App() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
} placement="bottom-right">
+
+
+
}
+ placement="top-right"
+ shape="circle"
+ >
+
+
+
+ );
+}
diff --git a/apps/docs/content/components/badge/content-examples.ts b/apps/docs/content/components/badge/content-examples.ts
index e5a43ff2a2..f21e28ce52 100644
--- a/apps/docs/content/components/badge/content-examples.ts
+++ b/apps/docs/content/components/badge/content-examples.ts
@@ -1,110 +1,7 @@
-export const NotificationIcon = `export const NotificationIcon = ({size, height, width, ...props}) => {
- return (
-
- );
-};`;
-
-export const CheckIcon = `export const CheckIcon = ({
- size,
- height,
- width,
- ...props
-}) => {
- return (
-
- );
-};`;
-
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-import {NotificationIcon} from "./NotificationIcon";
-import {CheckIcon} from "./CheckIcon";
-
-export default function App() {
- return (
-
-
-
-
-
-
-
-
-
-
-
}
- color="success"
- placement="bottom-right"
- >
-
-
-
}
- color="danger"
- shape="circle"
- placement="top-right"
- >
-
-
-
- );
-}`;
+import App from "./content-examples.raw.jsx?raw";
const react = {
"/App.jsx": App,
- "/NotificationIcon.jsx": NotificationIcon,
- "/CheckIcon.jsx": CheckIcon,
};
export default {
diff --git a/apps/docs/content/components/badge/placements.raw.jsx b/apps/docs/content/components/badge/placements.raw.jsx
new file mode 100644
index 0000000000..749e64888f
--- /dev/null
+++ b/apps/docs/content/components/badge/placements.raw.jsx
@@ -0,0 +1,20 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export default function App() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/apps/docs/content/components/badge/placements.ts b/apps/docs/content/components/badge/placements.ts
index 6a4af7b820..dc67908b7e 100644
--- a/apps/docs/content/components/badge/placements.ts
+++ b/apps/docs/content/components/badge/placements.ts
@@ -1,39 +1,4 @@
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-
-export default function App() {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}`;
+import App from "./placements.raw.jsx?raw";
const react = {
"/App.jsx": App,
diff --git a/apps/docs/content/components/badge/shapes.raw.jsx b/apps/docs/content/components/badge/shapes.raw.jsx
new file mode 100644
index 0000000000..59777647f1
--- /dev/null
+++ b/apps/docs/content/components/badge/shapes.raw.jsx
@@ -0,0 +1,14 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export default function App() {
+ return (
+
+ );
+}
diff --git a/apps/docs/content/components/badge/shapes.ts b/apps/docs/content/components/badge/shapes.ts
index 8f6370503f..75524eae1f 100644
--- a/apps/docs/content/components/badge/shapes.ts
+++ b/apps/docs/content/components/badge/shapes.ts
@@ -1,25 +1,4 @@
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-
-export default function App() {
- return (
-
- );
-}`;
+import App from "./shapes.raw.jsx?raw";
const react = {
"/App.jsx": App,
diff --git a/apps/docs/content/components/badge/show-outline.raw.jsx b/apps/docs/content/components/badge/show-outline.raw.jsx
new file mode 100644
index 0000000000..960ab3f524
--- /dev/null
+++ b/apps/docs/content/components/badge/show-outline.raw.jsx
@@ -0,0 +1,14 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export default function App() {
+ return (
+
+ );
+}
diff --git a/apps/docs/content/components/badge/show-outline.ts b/apps/docs/content/components/badge/show-outline.ts
index d11a8860bf..83f4e660d3 100644
--- a/apps/docs/content/components/badge/show-outline.ts
+++ b/apps/docs/content/components/badge/show-outline.ts
@@ -1,25 +1,4 @@
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-
-export default function App() {
- return (
-
- );
-}`;
+import App from "./show-outline.raw.jsx?raw";
const react = {
"/App.jsx": App,
diff --git a/apps/docs/content/components/badge/sizes.raw.jsx b/apps/docs/content/components/badge/sizes.raw.jsx
new file mode 100644
index 0000000000..cdf37c6067
--- /dev/null
+++ b/apps/docs/content/components/badge/sizes.raw.jsx
@@ -0,0 +1,17 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export default function App() {
+ return (
+
+ );
+}
diff --git a/apps/docs/content/components/badge/sizes.ts b/apps/docs/content/components/badge/sizes.ts
index c212de05ea..85a2f5b30b 100644
--- a/apps/docs/content/components/badge/sizes.ts
+++ b/apps/docs/content/components/badge/sizes.ts
@@ -1,29 +1,4 @@
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-
-export default function App() {
- return (
-
- );
-}`;
+import App from "./sizes.raw.jsx?raw";
const react = {
"/App.jsx": App,
diff --git a/apps/docs/content/components/badge/usage.raw.jsx b/apps/docs/content/components/badge/usage.raw.jsx
new file mode 100644
index 0000000000..1599fc5a23
--- /dev/null
+++ b/apps/docs/content/components/badge/usage.raw.jsx
@@ -0,0 +1,9 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export default function App() {
+ return (
+
+
+
+ );
+}
diff --git a/apps/docs/content/components/badge/usage.ts b/apps/docs/content/components/badge/usage.ts
index a4ca4998a3..1118304c37 100644
--- a/apps/docs/content/components/badge/usage.ts
+++ b/apps/docs/content/components/badge/usage.ts
@@ -1,16 +1,4 @@
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-
-export default function App() {
- return (
-
-
-
- );
-}`;
+import App from "./usage.raw.jsx?raw";
const react = {
"/App.jsx": App,
diff --git a/apps/docs/content/components/badge/variants.raw.jsx b/apps/docs/content/components/badge/variants.raw.jsx
new file mode 100644
index 0000000000..ab7ef5a02c
--- /dev/null
+++ b/apps/docs/content/components/badge/variants.raw.jsx
@@ -0,0 +1,20 @@
+import {Badge, Avatar} from "@nextui-org/react";
+
+export default function App() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/apps/docs/content/components/badge/variants.ts b/apps/docs/content/components/badge/variants.ts
index cc466b3b71..ddea95fb2e 100644
--- a/apps/docs/content/components/badge/variants.ts
+++ b/apps/docs/content/components/badge/variants.ts
@@ -1,35 +1,4 @@
-const App = `import {Badge, Avatar} from "@nextui-org/react";
-
-export default function App() {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}`;
+import App from "./variants.raw.jsx?raw";
const react = {
"/App.jsx": App,
diff --git a/apps/docs/content/components/badge/visibility.raw.jsx b/apps/docs/content/components/badge/visibility.raw.jsx
new file mode 100644
index 0000000000..c22ce8b40b
--- /dev/null
+++ b/apps/docs/content/components/badge/visibility.raw.jsx
@@ -0,0 +1,71 @@
+import {Badge, Switch} from "@nextui-org/react";
+
+export const NotificationIcon = ({size, height, width, ...props}) => {
+ return (
+
+ );
+};
+
+export const CartIcon = ({size, height, width, ...props}) => {
+ return (
+
+ );
+};
+
+export default function App() {
+ const [isInvisible, setIsInvisible] = React.useState(false);
+
+ return (
+
+
+
+
+
+
+
+
+
+
setIsInvisible(!value)}>
+ Show badge
+
+
+ );
+}
diff --git a/apps/docs/content/components/badge/visibility.ts b/apps/docs/content/components/badge/visibility.ts
index 3729cfaaef..8cc2818a7b 100644
--- a/apps/docs/content/components/badge/visibility.ts
+++ b/apps/docs/content/components/badge/visibility.ts
@@ -1,81 +1,7 @@
-export const NotificationIcon = `export const NotificationIcon = ({size, height, width, ...props}) => {
- return (
-
- );
-};`;
-
-export const CartIcon = `export const CartIcon = ({ size, height, width, ...props }) => {
- return (
-
- );
-};`;
-
-const App = `import {Badge, Avatar, Switch} from "@nextui-org/react";
-import {NotificationIcon} from "./NotificationIcon";
-import {CartIcon} from "./CartIcon";
-
-export default function App() {
- const [isInvisible, setIsInvisible] = React.useState(false);
-
- return (
-
-
-
-
-
-
-
-
-
-
setIsInvisible(!value)}>
- Show badge
-
-
- );
-}`;
+import App from "./visibility.raw.jsx?raw";
const react = {
"/App.jsx": App,
- "/NotificationIcon.jsx": NotificationIcon,
- "/CartIcon.jsx": CartIcon,
};
export default {