import{_ as s}from"./plugin-vue_export-helper-DlAUqK2U.js";import{c as a,a as e,o as n}from"./app-YeL2FPh5.js";const l={};function t(h,i){return n(),a("div",null,i[0]||(i[0]=[e(`
Vue component library for ocelot.social - works with Vue 2.7+ and Vue 3.
npm install @ocelot-social/uiImport 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>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>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)Vue component library for ocelot.social - works with Vue 2.7+ and Vue 3.
\\nnpm install @ocelot-social/ui\\n