🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

semantic-ui-vue2-albinodrought

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-ui-vue2-albinodrought

Semantic UI Integration for Vue 2 - AlbinoDrought fork

2.5.7
latest
Source
npm
Version published
Weekly downloads
4
-84%
Maintainers
1
Weekly downloads
 
Created
Source

Semantic UI's Components

Components and mixins to use with Vue 2

Installation

$ npm install semantic-ui-vue2-albinodrought

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

  • Gridui-grid, ui-row, ui-column
  • Formui-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>

Keywords

vue

FAQs

Package last updated on 17 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts