Skip to content

Commit

Permalink
feat: 🎨 update docs, bind active prop
Browse files Browse the repository at this point in the history
  • Loading branch information
kampsy committed Jan 23, 2025
1 parent 990ea97 commit a145632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/docs/data/showMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import { ShowMore } from 'kampsy-ui';
let isActive = $state(false);
<div class="w-full">
<ShowMore {isActive} />
<ShowMore bind:isActive />
</div>`;
7 changes: 4 additions & 3 deletions src/routes/show-more/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
import { ShowMore } from '$lib/index.js';
import { showMoreDefault } from '../../docs/data/showMore.js';
let isActive = $state(false);
let isActive = $state(false);
$inspect(isActive);
</script>

<svelte:head>
Expand Down Expand Up @@ -55,8 +56,8 @@
<div class="mt-4 xl:mt-7">
{#snippet demo()}
<div class="w-full">
<ShowMore {isActive} />
</div>
<ShowMore bind:isActive />
</div>
{/snippet}
{@render demoAndCode(demo, showMoreDefault)}
</div>
Expand Down

0 comments on commit a145632

Please sign in to comment.