@colletdev/vue

Vue 3 wrappers for Collet Rust/WASM UI components
13,534
Install
npm install @colletdev/vue
Latest Version:0.6.1
Vue:3
License:MIT
Last Updated:Aug 26, 2026
Links: npm
Maintainer: colletdev

@colletdev/vue

Vue 3.3+ wrappers (Composition API) for the Collet component library. Typed props, emits, and template refs over 48 Rust/WASM Custom Elements.

Install

npm install @colletdev/vue @colletdev/core

Quick Start

<script setup lang="ts">
import { init, Button, TextInput } from '@colletdev/vue';

await init(); // once, at app startup
</script>

<template>
  <Button variant="filled" label="Save" intent="primary" @cx-click="save" />
  <TextInput label="Email" kind="email" @cx-input="onInput" />
</template>

Features

  • Typed props -- union-literal types for all component enums
  • Typed emits -- @cx-click, @cx-change, @cx-input, etc. with typed detail
  • Template refs -- expose()-based refs for imperative methods (.open(), .close())
  • Structured data -- SelectOption[], TableColumn[], AccordionItem[] fully typed
  • Ships compiled -- dist/ contains ready-to-use .js and .d.ts files

Volar Support

For global type checking of <cx-*> tags in templates, add to your tsconfig.json:

{
  "compilerOptions": {
    "types": ["@colletdev/vue/global"]
  }
}

This enables autocomplete and type checking on raw Custom Element tags alongside the Vue wrapper components.

Event Pattern

Custom events use the cx- prefix. Vue's @ shorthand works as expected:

<template>
  <Select label="Country" :options="countries" @cx-change="setCountry" />
</template>

API Reference

See @colletdev/docs for the full props/events reference and framework guides.

License

MIT -- github.com/Danrozen87/collet

Related Packages

@unframed/vue

Vue components for Unframed web components, with v-model and typed props.

951 1
@colletdev/docs

Collet component library documentation — API reference, framework guides, and AI...

13,399
@raylang/vue

Vue 3 wrappers (with v-model) of the ray-elements web components

1,329 0
@sky.ui.pro/vue

Sky UI Pro Vue wrappers — run npx sky.ui.pro install after npm install.

9,929
@sky.ui.ultra/vue

Sky UI Ultra Vue wrappers — run npx sky.ui.ultra install after npm install.

7,540

Version History

Version Released Vue License
0.6.1 >=3.3.0 MIT
0.6.0 >=3.3.0 MIT
0.5.1 >=3.3.0 MIT
0.4.37 >=3.3.0 MIT
0.4.36 >=3.3.0 MIT