Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Over 90 Bootstrap based Vue.js components and directives

License

NotificationsYou must be signed in to change notification settings

java131313/coreui-vue

 
 

Repository files navigation

TweetNPMDownloadsBuildLicenseCoverage

A @coreui/vuev3 components library project

Over 90 bootstrap based Vue.js components and directives!

For library guide please visit ourDocumentation site »

Check out demo of components usage:CoreUI Vue Admin Template »

Template

Installation

Before installation you need to installnode and npm on your machine.

npm install @coreui/vue

Styling

Components are styled using @coreui/coreui CSS library, but you can use them also with bootstrap CSS library. That is possible because @coreui/coreui library is compatible with bootstrap, it just extends its functionalities. The only exception is custom CoreUI components, which don't exist in the Bootstrap ecosystem (template components, callout, switch).

Styles have to be imported separately! ImportCoreUI CSS library (recommended), orBootstrap library

Installation:

npm install @coreui/coreui

Basic usage:

@import"~@coreui/coreui/scss/coreui";

Registering components

// Installing whole packageimportCoreuiVuefrom'@coreui/vue';Vue.use(CoreuiVue);// Registering a single componentimport{CSwitch,CButton}from'@coreui/vue';// globallyVue.component('CButton',CButton)exportdefault{  ...// locallycomponents:{CSwitch},  ...}

Registering directives

// Registering single directivesimport{CEmitRootEvent,CTooltip}from'@coreui/vue';// globallyVue.directive('c-emit-root-event',CEmitRootEvent)exportdefault{  ...// locallydirectives:{'c-tooltip':CTooltip},  ...}

Optimization

Components are imported from CommonJS module by default, if you want to use only specific components you can import them from source to enable treeshaking.

// Import components this way to allow tree shakingimport{CDataTable}from'@coreui/vue/src';

Code autocompletion

If you are usingVS Code editor with Vetur plugin installed, then the editor would display hints for our library (component names and prop names).

Changelog

See the GitHubrelease history.

Contributing

SeeCONTRIBUTING.md.

Credits

Some design ideas and solutions in this library are inspired byBootstrap-Vue library

About

Over 90 Bootstrap based Vue.js components and directives

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue51.0%
  • JavaScript48.8%
  • HTML0.2%

[8]ページ先頭

©2009-2025 Movatter.jp