Dynamic variants #279
Answered
by
sheremet-va
sheremet-va
asked this question in
Q&A
-
Is it possible to have dynamic variants in the latest version? I mean something like this: <script setup>
const names = ['a', 'b', 'c']
</script>
<template>
<Story :layout="{ type: 'grid', width: '100px' }">
<Variant v-for="name in names">
{{ name }}
</Variant>
</Story>
</template> It was possible before, but when I updated Histoire to the latest version, it now assumes that my story only has default variant. |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Sep 5, 2022
Replies: 1 comment
-
We had a bug, where |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sheremet-va
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We had a bug, where
names
was not correctly collected. Everything works fine.