-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(svelte): controls not rendering in variant > controls slot
- Loading branch information
Showing
6 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script> | ||
import BaseButton from './BaseButton.svelte' | ||
export let Hst | ||
let disabled = false | ||
let content = 'Hello world' | ||
</script> | ||
|
||
<Hst.Story> | ||
<Hst.Variant title="Variant 1"> | ||
<BaseButton {disabled}> | ||
{content} 1 | ||
</BaseButton> | ||
|
||
<svelte:fragment slot="controls"> | ||
<Hst.Text bind:value={content} title="Content 1" /> | ||
<Hst.Checkbox bind:value={disabled} title="Disabled 1" /> | ||
</svelte:fragment> | ||
</Hst.Variant> | ||
|
||
<Hst.Variant title="Variant 2"> | ||
<BaseButton {disabled}> | ||
{content} 2 | ||
</BaseButton> | ||
|
||
<svelte:fragment slot="controls"> | ||
<Hst.Text bind:value={content} title="Content 2" /> | ||
<Hst.Checkbox bind:value={disabled} title="Disabled 2" /> | ||
</svelte:fragment> | ||
</Hst.Variant> | ||
</Hst.Story> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters