Import Globally On Demand #2542
Unanswered
adityafawzan
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I can't understand what's the problem. Import it just like other libraries you are using, no difference. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
how to import this in App.vue:
import { darkTheme } from 'naive-ui'
import type { GlobalTheme } from 'naive-ui'
just like these components :
import {
// create naive ui
create,
// component
NButton,
NLayout,
NLayoutHeader,
NLayoutSider,
NLayoutFooter,
NH2,
} from "naive-ui";
const naive = create({
components: [NButton, NLayout, NLayoutHeader, NLayoutSider, NLayoutFooter, NH2],
});
Beta Was this translation helpful? Give feedback.
All reactions