Skip to content

Commit

Permalink
refactor: add story of HstCopyIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
reslear committed May 1, 2024
1 parent d139b28 commit af28df6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/histoire-controls/src/components/HstCopyIcon.story.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<script lang="ts" setup>
import { HstCopyIcon } from './HstCopyIcon.vue';

Check failure on line 2 in packages/histoire-controls/src/components/HstCopyIcon.story.vue

View workflow job for this annotation

GitHub Actions / Build and test

Extra semicolon
function initState() {
return {
content: 'Text fo copy',
}
}

Check failure on line 8 in packages/histoire-controls/src/components/HstCopyIcon.story.vue

View workflow job for this annotation

GitHub Actions / Build and test

Expected 1 line break before '</script>', but 2 line breaks found
</script>

<template>
<Story

Check failure on line 13 in packages/histoire-controls/src/components/HstCopyIcon.story.vue

View workflow job for this annotation

GitHub Actions / Build and test

Expected indentation of 2 spaces but found 1 space
title="internals/HstCopyIcon"
>
<Variant
title="default"
:init-state="initState"
>
<template #default="{ state }">
<HstCopyIcon
:content="state.content"
/>
</template>
</Variant>
</Story>
</template>

0 comments on commit af28df6

Please sign in to comment.