dependabot[bot] 55e8746833
build(deps-dev): bump vite-tsconfig-paths from 6.1.0 to 6.1.1 in /packages/ui in the vite group (#9225)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-15 00:25:34 +00:00
..

@ocelot-social/ui

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

Installation

npm install @ocelot-social/ui

Usage

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)