Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to auto import all components with vue3? #1525

Open
aaronkingdom opened this issue Jul 27, 2023 · 1 comment
Open

how to auto import all components with vue3? #1525

aaronkingdom opened this issue Jul 27, 2023 · 1 comment

Comments

@aaronkingdom
Copy link

hi everyones,

now i need to import manually, how to import all module??
my file like this

1111 2222 <script setup lang="ts"> import { MDBBtn, MDBCard } from 'mdb-vue-ui-kit'; </script>
@monayemislam
Copy link

Hello @aaronkingdom ,
At first install the kit by running following command
npm i mdb-ui-kit
Then you can import the entire library by following code
import * as mdb from 'mdb-ui-kit';
After importing you will find all module inside mdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants