semantic-ui-vue2

Semantic UI Integration for Vue 2
3,164 122
Install
npm install semantic-ui-vue2
Latest Version:2.4.2
License:ISC
Last Updated:Oct 21, 2017
Links: GitHub  ·  npm
Maintainer: almino

Semantic UI's Components

Components and mixins to use with Vue 2

Installation

$ npm install semantic-ui-vue2

Include Semantic UI's CSS in your HTML. See official docs.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.7/semantic.min.css">

Usage

Imports

Import the global mixin to use all the components. See example below.

Components

Import individual components.

  • Grid – component
  • Row – component
  • Column – component
  • Checkbox – component
  • Dropdown – component
  • Input – component
  • Label – component
  • Form – component
  • Field – component
import {ComponentName} from 'semantic-ui-vue2'

export default {
    components: {
        'component-name': ComponentName,
                …
    },
    …
}
Collections

Mixins to import related components at once

  • Grid – ui-grid, ui-row, ui-column
  • Form – ui-form, ui-field
import {Collections} from 'semantic-ui-vue2'

export default {
    mixins: [Collections.CollectionName]
    …
}

Example

App.vue:

<template lang="html">
    <ui-grid container>
        <ui-row>
            <ui-column>
                Lorem ipsum dolor sit amet
            </ui-column>
        </ui-row>
    </ui-grid>
</template>

<script>
import {Mixin} from 'semantic-ui-vue2'

export default {
    mixins: [Mixin]
}
</script>

Result:

<div class="ui grid container">
    <div class="row">
        <div class="column">
            Lorem ipsum dolor sit amet
        </div>
    </div>
</div>

Related Packages

@dullar/mercury

Advanced and highly reusable Mobile UI Components built on Vue2 & You can define...

8,553 6
@halobear/vue-upload

vue上传组件

460 1
vite-plugin-vue2

Vite plugin for Vue2

1,474,659 618
vue-jstree

a tree plugin for vue2

137,015 630
vite-plugin-git-revision

Vite plugin that generates VERSION and COMMITHASH files during build based on a...

21,961 11

Version History

Version Released License
2.4.2 ISC
2.4.1 ISC
2.4.0 ISC
2.3.3 ISC
2.3.2 ISC