0.1.14 • Published 5 months ago
vue-psych v0.1.14
Vue Psych
Psychological experiment process encapsulation, referenced from jspsych.
Installation
pnpm add vue-psych
Usage
usage example
<template>
<div class="container">
<PsychPane name="welcome">
<div>Hello world!</div>
</PsychPane>
</div>
</template>
<script setup lang="ts">
import { useProviderPsych } from 'vue-psych'
const psych = useProviderPsych()
const helloTrial = {
name: 'welcome'
}
onMounted(() => {
psych.run([helloTrial])
})
</script>