-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](@svelteui/core): set fixed as true by default in AppShell and s…
…tory
- Loading branch information
1 parent
6e29bad
commit 138a23d
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
packages/svelteui-core/src/components/AppShell/AppShell.stories.svelte
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,30 @@ | ||
<script lang="ts"> | ||
import { Meta, Template, Story } from '@storybook/addon-svelte-csf'; | ||
import { Anchor } from '../Anchor'; | ||
import { Stack } from '../Stack'; | ||
import { Text } from '../Text'; | ||
import { Title } from '../Title'; | ||
import { AppShell, Header, Navbar, ShellSection } from './index'; | ||
</script> | ||
|
||
<Meta title="Components/App Shell" component={AppShell} /> | ||
|
||
<Template> | ||
<AppShell> | ||
<Navbar slot="navbar" fixed width={{ sm: 200, lg: 300 }}> | ||
<ShellSection grow> | ||
<Stack> | ||
<Text align="center">Navbar</Text> | ||
<Anchor href="#">Home Page</Anchor> | ||
<Anchor href="#">Test Page</Anchor> | ||
</Stack> | ||
</ShellSection> | ||
</Navbar> | ||
<Header slot="header" height={60}> | ||
<Title>Header</Title> | ||
</Header> | ||
<div style="display: flex;">This is the main content</div> | ||
</AppShell> | ||
</Template> | ||
|
||
<Story name="App Shell" id="appShellStory" /> |
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