Vue Semantic screenshot

Vue Semantic

Author Avatar Theme by Croudtech
Updated: 2 Feb 2018
123 Stars

A collection of vue components for integrating the semantic ui library

Categories

Overview:

The Vue Semantic package is a collection of Vue components that allows you to integrate the Semantic UI library into your Vue projects. It provides a wide range of components and features for building stylish and responsive user interfaces.

Features:

  • Vue components for Semantic UI: The package includes a collection of Vue components that are designed to work seamlessly with the Semantic UI library. This allows you to easily integrate Semantic UI styles and functionality into your Vue projects.
  • Easy installation: The package can be easily installed using NPM or Yarn package managers. Once installed, you will also need to include the Semantic UI CSS and JS files in your project.
  • Documentation and usage examples: The package provides detailed documentation and usage examples to help you understand and use the Vue components effectively.
  • Vue 1 support: If you are still using Vue 1, the package also offers a separate branch called “vue1” or a version 0.0.7 tag that is compatible with Vue 1.

Installation:

To install the Vue Semantic package, you can use either NPM or Yarn. Here are the steps to install the package using NPM:

  1. Open your project’s terminal
  2. Run the following command to install the package: npm install vue-semantic
  3. Next, you will need to include the Semantic UI CSS and JS files in your project. The easiest way to do this is by including them in your HTML file. You can find the links to download these files on the Semantic UI website.
  4. Once you have included the necessary files, you can start using the Vue components provided by the package in your Vue project.

For more advanced build setups, such as webpack, you can follow these additional steps:

  1. If you are using webpack, open your webpack.base.conf.js file.
  2. Add the following code snippet to add jQuery as a global variable:
    plugins: [
      new webpack.ProvidePlugin({
        $: 'jquery',
        jQuery: 'jquery'
      })
    ],
    
  3. In your main.js file, include the Semantic UI CSS and JS files at the top:
    import 'semantic-ui-css/semantic.min.css'
    import 'semantic-ui-css/semantic.min.js'
    
  4. With these additional steps, you can now use the Vue Semantic components with the added support for webpack.

Summary:

The Vue Semantic package is a useful tool for Vue developers who want to integrate the styling and functionality of the Semantic UI library into their projects. It provides a collection of Vue components that are easy to install and use, along with detailed documentation and examples. With support for both Vue 1 and webpack, the package offers flexibility and ease of integration for different Vue project setups.