Vue component for rich content strings
This library provides a simple vue component to render text with rich placeholder replacements. The parameters that are replaced can either be a string or an object that allows rendering any Vue component into the text. Placeholders are wrapped in brackets, like {placeholder}.
Installation
npm install --save @juliushaertl/vue-richtext
Usage
- Input string:
The file {file} was added by {username}
- Arguments:
- file:
'MyDocument'
- username:
{ component: User, props: { username: 'Jane Doe' }
- file: