Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add story of HstCopyIcon #717

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading