Skip to content

Commit

Permalink
Use multi worded component
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoattal committed Feb 4, 2024
1 parent 483d962 commit 791f115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import Autoprops from './Autoprops.vue'
import AutoStateProps from './AutoStateProps.vue'
function initState () {
return {
Expand All @@ -10,21 +10,21 @@ function initState () {

<template>
<Story
title="Autoprops"
title="Auto State & Props"
:layout="{
type: 'grid',
width: 200,
}"
>
<Variant title="Naked">
<Autoprops />
<AutoStateProps />
</Variant>
<Variant
title="State"
:init-state="initState"
>
<template #default="{ state }">
<Autoprops :name="state.name" />
<AutoStateProps :name="state.name" />
</template>
</Variant>
</Story>
Expand Down
File renamed without changes.

0 comments on commit 791f115

Please sign in to comment.