Single stories
Here are some pattern examples to test your component without any variant. This is the simplest way to get you started.
Within an iframe
This will display your component inside an iframe to be able to test the responsiveness correctly. The iframe is needed for CSS media queries to work properly.
vue
<script lang="ts" setup>
import MyComponent from './MyComponent.vue'
</script>
<template>
<Story title="MyStory">
<MyComponent />
</Story>
</template>Integrated
Deprecated
The iframe: false layout option is deprecated and ignored — stories always render inside an iframe now.
Remove option when migrating. Non-serializable state stays inside preview runtime; see browser runtime migration.