@orchestra-design-system/vue
v0.0.13
Published
Vue wrappers for Orchestra design system web components
Maintainers
Readme
@orchestra-design-system/vue
Vue wrapper components for Orchestra web components.
Installation
npm install @orchestra-design-system/vue vue@orchestra-design-system/core is installed transitively by the Vue wrapper.
The wrapper expects vue@^3 as a peer dependency.
Install core explicitly only if your app imports from core directly.
Register the plugin
import { createApp } from 'vue'
import App from './App.vue'
import { ComponentLibrary } from '@orchestra-design-system/vue'
const app = createApp(App)
app.use(ComponentLibrary)
app.mount('#app')The plugin calls defineCustomElements() from @orchestra-design-system/core/loader.
Usage
<script setup lang="ts">
import { OrchestraButton, OrchestraIcon } from '@orchestra-design-system/vue'
</script>
<template>
<OrchestraButton variant="primary" text="Save" />
<OrchestraIcon name="checked" size="20px" />
</template>Available components
OrchestraButtonOrchestraIcon
These wrappers are generated from core Stencil components.
Scripts
npm run buildBuild output is emitted to dist/.
Development notes
- Generated Vue proxies are in
lib/stencil-generated/. - Plugin definition is in
lib/plugin.ts. - For component API details, see ../core/README.md.
