0.3.0 • Published 1 year ago

@caisy/rich-text-vue-renderer v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Vue.js Rich Text Renderer

For Vue.js, we wrote a helper library that makes the integration process of rich texts from Caisy as easy as possible.

Installation

To install, use npm or another package manager:

npm install @caisy/rich-text-vue-renderer --save

Usage

For ease of use, just pass the JSON and the component will convert it to HTML:

<template>
  <div v-if="data?.text && data?.text?.json">
    <RichTextRenderer :node="data.text.json" />
  </div>
</template>

<script>
import { RichTextRenderer } from "@caisy/rich-text-vue-renderer";
...
</script>

Correct Object Structure

To ensure that you pass the correct object, it should contain something like this:

{ type: "doc", ... }

Example Codepen/Stackblitz

An example using the rich text render with Vue.js and Nuxt can also be found here on Stackblitz: https://stackblitz.com/github/caisy-io/caisy-example-nuxt

0.3.0

1 year ago

0.2.6

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.1

2 years ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago