9
9
10
10
import ComponentInstallation from " @/components/component-installation" ;
11
11
import ComponentPreview from " @/components/component-preview" ;
12
- import RawCode from " @/components/raw-code.tsx" ;
13
- import TwRawCode from " @repo/tailwindcss/default/alert-dialog?raw" ;
14
- import UnoRawCode from " @repo/unocss/default/alert-dialog?raw" ;
12
+ import ComponentSource from " @/components/component-source" ;
15
13
16
14
<ComponentPreview name = " alert-dialog-demo" client :only = " solid-js" />
17
15
@@ -33,7 +31,7 @@ npm install @kobalte/core
33
31
```
34
32
35
33
<StepItem >Copy and paste the following code into your project:</StepItem >
36
- <RawCode code = { TwRawCode } client :only = " solid-js" />
34
+ <ComponentSource name = " alert-dialog " client :only = " solid-js" />
37
35
38
36
</Step >
39
37
@@ -45,7 +43,7 @@ npm install @kobalte/core
45
43
```
46
44
47
45
<StepItem >Copy and paste the following code into your project:</StepItem >
48
- <RawCode code = { UnoRawCode } client :only = " solid-js" />
46
+ <ComponentSource name = " alert-dialog " client :only = " solid-js" />
49
47
50
48
</Step >
51
49
@@ -84,4 +82,17 @@ import {
84
82
</AlertDialogFooter >
85
83
</AlertDialogContent >
86
84
</AlertDialog >
87
- ```
85
+ ` ` ` import ComponentInstallation from "@/components/component-installation";
86
+ import ComponentPreview from "@/components/component-preview";
87
+ import RawCode from "@/components/raw-code.tsx";
88
+ import TwRawCode from "@repo/tailwindcss/default/alert-dialog?raw";
89
+ import UnoRawCode from "@repo/unocss/default/alert-dialog?raw";
90
+ import ComponentInstallation from "@/components/component-installation";
91
+ import ComponentPreview from "@/components/component-preview";
92
+ import RawCode from "@/components/raw-code.tsx";
93
+ import TwRawCode from "@repo/tailwindcss/default/alert-dialog?raw";
94
+ import UnoRawCode from "@repo/unocss/default/alert-dialog?raw";
95
+ import ComponentInstallation from "@/components/component-installation";
96
+ import ComponentPreview from "@/components/component-preview";
97
+ import ComponentSource from "@/components/component-source";
98
+
0 commit comments