You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<template>
{{ time }}
</template>
<script setup lang="ts">
const { time } =defineProps<{ time:number}>()
</script>
The component's time prop is the timeMs ref from above composable.
I've searched the docs but didn't really come to a conclusion:
How would I create a story for above component and trigger the timer on a control button press or similar?
I don't want it running from the beginning using a hook or similar. Any advice?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Let`s take a look at that code (example code for simplicity):
Composable:
Component:
The component's time prop is the timeMs ref from above composable.
I've searched the docs but didn't really come to a conclusion:
How would I create a story for above component and trigger the timer on a control button press or similar?
I don't want it running from the beginning using a hook or similar. Any advice?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions