@opentask/taskin-design-vue
v0.1.0
Published
Vue 3 design system components for Taskin - including the official mascot and UI elements
Maintainers
Readme
@opentask/taskin-design-vue
Vue 3 design system components for Taskin - including the official mascot and UI elements
📦 Installation
npm install @opentask/taskin-design-vue
# or
pnpm add @opentask/taskin-design-vue🚀 Quick Start
Using the Taskin Mascot
<script setup lang="ts">
import { TaskinMascot } from '@opentask/taskin-design-vue';
import '@opentask/taskin-design-vue/style.css';
import { ref } from 'vue';
const taskinRef = ref();
const handleReady = (payload) => {
console.log('Taskin is ready!', payload);
// Use the controller to interact with the mascot
payload.controller.celebrate();
};
const celebrate = () => {
taskinRef.value?.celebrate();
};
</script>
<template>
<div>
<TaskinMascot
ref="taskinRef"
:size="220"
mood="sarcastic"
:idle-animation="true"
:animations-enabled="true"
@ready="handleReady"
/>
<button @click="celebrate">Celebrate!</button>
</div>
</template>🎭 Components
TaskinMascot
The official Taskin mascot component with animations and moods.
Props
size(Number, default: 220) - Size of the mascot in pixelsmood(String, default: 'sarcastic') - Mood of the mascotidleAnimation(Boolean, default: true) - Enable idle animationsanimationsEnabled(Boolean, default: true) - Enable all animations
Events
@ready- Emitted when the mascot is ready, provides controller instance
Controller Methods
celebrate()- Play celebration animationwave()- Play wave animationthinking()- Show thinking animationsleep()- Put mascot to sleepwakeUp()- Wake up mascot
🎨 Development
Storybook
pnpm storybookBuild
pnpm buildTest
pnpm test📝 License
MIT
🔗 Related Packages
- @opentask/taskin-dashboard - Dashboard components
- @opentask/taskin-core - Core task management
