NPM Package: @kksh/react
Original Shadcn: https://ui.shadcn.com/
Normally, Shadcn components are imported from local @/components/ui
directory.
Now you can import the components from @kksh/react
package.
Most of Shadcn components are exported from @kksh/react
package.
Component Examples
Command Palette Example
Theme
You can get KK’s color theme and set your extension theme to match KK’s theme.
@kksh/react
requires <ThemeProvider />
and <ThemeWrapper />
components to be wrapped around the root component.
<ThemeProvider />
is responsible for dark/light mode switching
<ThemeWrapper />
is responsible for setting the color theme
For color theme to take effect, you need to import the theme styles from @kksh/vue/themes
.
Sample Theme Customizer