@ocelot-social/ui

Vue component library for ocelot.social - works with Vue 2.7+ and Vue 3
983 115
Install
npm install @ocelot-social/ui
Latest Version:0.0.8
Vue:2 · 3
License:Apache-2.0
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: ulfgebhardt

@ocelot-social/ui

Vue component library for ocelot.social - works with Vue 2.7+ and Vue 3.

Installation

npm install @ocelot-social/ui

Usage

Option 1: Individual Imports (recommended)

Import only the components you need. This enables tree-shaking for smaller bundle sizes.

import { OsButton } from '@ocelot-social/ui'
<template>
  <OsButton variant="primary">Click me</OsButton>
</template>

<script setup>
import { OsButton } from '@ocelot-social/ui'
</script>

Option 2: Global Registration

Register all components globally via the Vue plugin. No tree-shaking - all components are included in the bundle.

// main.ts
import { createApp } from 'vue'
import { OcelotUI } from '@ocelot-social/ui'
import App from './App.vue'

const app = createApp(App)
app.use(OcelotUI)
app.mount('#app')

Components are then available globally without imports:

<template>
  <OsButton variant="primary">Click me</OsButton>
</template>

Vue 2.7 Support

This library uses vue-demi for Vue 2/3 compatibility.

// Vue 2.7
import Vue from 'vue'
import { OcelotUI } from '@ocelot-social/ui'

Vue.use(OcelotUI)

Related Packages

uni-press-ui

A material like components library for vue2

707
yan-vue

A Vue2 component library

574
linger-ui

zz组件库

462
@lh-ui/vue2

lh-ui Vue 2.7 UI 组件库(企业级国风水墨设计),基于 @lh-ui/share 框架无关共享层

0
vue2do

Base component on Vuejs2

3,485 23

Version History

Version Released Vue License
0.0.8 ^2.7.0 || ^3.0.0 Apache-2.0
0.0.7 ^2.7.0 || ^3.0.0 Apache-2.0
0.0.6 ^2.7.0 || ^3.0.0 Apache-2.0
0.0.5 ^2.7.0 || ^3.0.0 Apache-2.0
0.0.4 ^2.7.0 || ^3.0.0 Apache-2.0