This repository contains examples on how to use the Vue MDBootstrap v2.2 components, and integrate Bootstrap v5 or TailwindCss v4 framework.
VSCode + Vue - Official (and disable Vetur).
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc
CLI with vue-tsc for type checking. In editors, we need Vue - Official to make the
TypeScript language service aware of .vue file types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Vue - Official has also implemented a Take-Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
See Vite Configuration Reference.
Clone this repository and runs command below.
# with npm
npm install
# with yarn
yarn installRunning examples with Bootstrap v5 css framework.
# with npm
npm run bootstrap:dev
# with yarn
yarn bootstrap:devRunning examples with Tailwind v4 css framework.
# with npm
npm run tailwind:dev
# with yarn
yarn tailwind:devThen open your browser and point to: http://localhost:5175/
Build examples with Bootstrap v5 css framework.
# with npm
npm run bootstrap:prod
# with yarn
yarn bootstrap:prodBuild examples with Tailwind v4 css framework.
# with npm
npm run tailwind:prod
# with yarn
yarn tailwind:prod