You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
outputDir: 'public/ui', // Where compiled .json files are written
69
+
verbose: true, // Enable build logging
72
70
}),
73
71
],
74
72
});
@@ -109,22 +107,149 @@ export class PanelSystem extends createSystem({
109
107
}) {}
110
108
```
111
109
112
-
### Adding Component Kits to Your Spatial User Interface
110
+
### Component Kits
111
+
112
+
Component kits provide pre-built UI components like buttons, panels, inputs, and icons. IWSDK supports multiple kits that can be combined in your application.
113
+
114
+
#### Available Component Kits
115
+
116
+
-**`@pmndrs/uikit-horizon`** - Reality Labs design system (buttons, panels, inputs)
117
+
-**`@pmndrs/uikit-lucide`** - Icon library with 1000+ icons
118
+
-**`@pmndrs/uikit-default`** - Default kit based on shadcn design system
119
+
120
+
#### Basic Kit Configuration
121
+
122
+
Configure kits in the `spatialUI` feature when creating your world:
#### Optimizing Bundle Size with Selective Imports
113
154
114
-
If you'd like to use a different or additional component kit for your uikitml file, you can configure the kits in the `spatialUI` feature list when creating a `World`:
155
+
For large icon libraries like `@pmndrs/uikit-lucide` (which contains over 1000 icons), importing the entire package can significantly increase your bundle size. Instead, import only the icons you need:
0 commit comments