@voithos-labs/aragonite-vue
vue component for aragonite, the cute markdown editor lib
195
39
| Install | |
|---|---|
npm install @voithos-labs/aragonite-vue |
|
| Latest Version: | 0.11.1 |
| Vue: | 3 |
| License: | MPL-2.0 |
| Last Updated: | Oct 23, 2026 |
| Links: | GitHub · npm |
Maintainer: lovecraftian_life
@voithos-labs/aragonite-vue
Aragonite as a vue component; works with vue 3.3+, nuxt included. What is aragonite? Read the short (your mileage may vary) readme, or try it out at aragonite.dev.
Install
Install the core package and this component:
npm install @voithos-labs/aragonite @voithos-labs/aragonite-vue
Use it
<script setup lang="ts">
import { ref } from 'vue';
import { Aragonite, type AragoniteInstance } from '@voithos-labs/aragonite-vue';
import '@voithos-labs/aragonite/style.css';
import '@voithos-labs/aragonite/styles/editor-theme.css';
const text = ref('> That is not dead which can eternal lie,\n> And with strange aeons even death may die.\n');
const editor = ref<AragoniteInstance | null>(null);
</script>
<template>
<Aragonite ref="editor" v-model="text" theme="light" style="height: 70vh">
<template #header><input placeholder="Title" /></template>
</Aragonite>
</template>
Relevant (or irrelevant, fuck if i know) details:
- Rather not bind? Pass
default-valueinstead ofv-modeland the editor keeps the document itself. - Every other prop is an editor option (
theme,plugins, ...), and the ref'shandlegets yougetSource(),runCommand()and friends once it mounts. - Nuxt: no
<ClientOnly>needed, it renders on the server just fine. Put the two stylesheets innuxt.config'scssarray instead of importing them.
More
The consumer guide has the rest: props, handle's methods, events, theming, etc. etc.
License
Aragonite is free software, released under MPL-2.0: use it, study it, fork it, embed it in whatever you're building, closed source included. The one string attached: if you change aragonite's own files, you share those changes under the same license.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.11.1 | ^3.3.0 | MPL-2.0 | |
| 0.11.0 | ^3.3.0 | MPL-2.0 |
Pre-releases (1)
| Version | Released | License |
|---|---|---|
| 0.0.0-stage |