-
I have integrated Storybook for my Nuxt.js 3.7.x project by using Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
jdkcoder
Sep 18, 2023
Replies: 1 comment
-
I found the solution, first add module of unocss in nuxt.config.ts ...
modules: [
//...
'@unocss/nuxt',
] Then at preview.ts/preview.js just add import type { Preview } from "@storybook/vue3";
import 'virtual:uno.css'
const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
docs: {
toc: true,
}
},
};
export default preview; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jdkcoder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the solution, first add module of unocss in nuxt.config.ts
Then at preview.ts/preview.js just add
import 'virtual:uno.css'