semantic-ui-vue2
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– componentRow– componentColumn– componentCheckbox– componentDropdown– componentInput– componentLabel– componentForm– componentField– 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-columnForm–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
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 | |
| 2.3.1 | ISC | |
| 2.3.0 | ISC | |
| 2.2.1 | ISC | |
| 2.2.0 | ISC | |
| 2.1.1 | ISC | |
| 2.1.0 | ISC | |
| 2.0.0 | ISC | |
| 1.0.2 | ISC | |
| 1.0.1 | ISC | |
| 1.0.0 | ISC |