Skip to content

Input Text

Use this component to render HTML inside a Vue component.

Example Usage

Example

Berechne die Summe aus im Browser.

vue
<template>
  <h3>
    Berechne die Summe aus
    <SkLatex :model-value="expression"></SkLatex>
    <SkLatex v-model="expression" :editable="true"></SkLatex>
    im Browser.
  </h3>
</template>

<script setup>
import { ref } from 'vue';

const expression = ref('\\frac{1}{4}');
</script>

Reference

Properties

NameTypeDefaultDescription
v-modelrefnullThe value to edit
editableBooleanfalseWhether the content is editable or not

Events

NameParametersDescription
@inputeventthe payload of the input