@sinkers/semantic-ui-vue0.5.1-alpha • Public • Published
Semantic UI Vue
Looking for maintainers!
There is a lot to do and few maintainers with little time :). If you'd like to help with this project, please let us know.
Semantic UI Vue is the Vue integration for Semantic UI.
It is highly inspired on Semantic UI React If you have used it already, you will find Semantic UI Vue's API to be almost the same.
Semantic UI Vue is still under heavy development. Please, feel free to contribute. You can see the feature status here.
Do you have a question? Do you want to submit a bug, or suggest an improvement?
Please contact us! Especially at this stage, we really need this.
The Semantic UI Vue package can be installed via NPM:
$ npm install semantic-ui-vue --save
Once Semantic UI Vue has been installed, you will need to import it in your main file (usually index.js or main.js) and tell Vue to use it:
;;/* ... */Vue;
If you are not using Webpack, you can add the script in your html:
<!-- head -->
Or, in alternative, you can import it using a CDN:
Now you are ready to go! Check out the components' examples to see how to use them.
Content Delivery Network (CDN)
You can use the default Semantic UI stylesheet by including a Semantic UI CDN link in yourindex.html file. This is the quickest way to get started with Semantic UI Vue. You won't be able to use custom themes with this method.
To avoid unexpected behavior please use only the last version of Semantic-UI
Semantic UI CSS package
The Semantic UI CSS package is automatically synced with the main Semantic UI repository to provide a lightweight CSS only version of Semantic UI. Semantic UI CSS can be installed as a package in your project using NPM. You won't be able to use custom themes with this method.
$ npm install semantic-ui-css --save
After install, you'll need to include the minified CSS file in your index.js file:
Semantic UI package
Install the full Semantic UI package. Semantic UI includes Gulp build tools so your project can preserve its own theme changes, allowing you to customize the style variables.
Detailed documentation on theming in Semantic UI is provided here.
$ npm install semantic-ui --save-dev
After building the project with Gulp, you'll need to include the minified CSS file in your index.js file:
You can use semantic-ui-vue as nuxt.js module
- Install semantic-ui-vue and semantic-ui-css packages
- Add this into your nuxt.config.js file:
modules:'semantic-ui-vue/nuxt' // includes styles from semantic-ui-css'semantic-ui-vue/nuxt' css: false // if you have your own semantic-ui styles