Skip to content

Input Math

This component is a wrapper for Mathlive. It adds some schoolkit sugar on top of the editor.

Example Usage

Example


Content: \sqrt4+\frac{5}{12}
vue
<template>
  <ClientOnly>
    <sk-input-math v-model="value" placeholder="Formel" /><br />
    <sk-input-math v-model="value" /></ClientOnly
  ><br />
  Content: {{ value }}
</template>

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

const value = ref('\\sqrt4+\\frac{5}{12}');
</script>

Reference

Properties

NameTypeDefaultDescription
v-modelrefnullThe value to edit
styleNamerefsk-input p-inputtextAdd custom style for the InputMath
placeholderrefnullAdd a placeholder

Events

NameParametersDescription
@inputeventthe payload of the input

Slots

NameParametersDescription