mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
chore(examples): add sapper set-up
This commit is contained in:
parent
c1b98ced95
commit
fbb0c2d413
17 changed files with 2677 additions and 0 deletions
32
examples/sapper/src/routes/_layout.svelte
Normal file
32
examples/sapper/src/routes/_layout.svelte
Normal file
|
@ -0,0 +1,32 @@
|
|||
<script>
|
||||
export let segment = undefined;
|
||||
|
||||
import {
|
||||
Content,
|
||||
Breadcrumb,
|
||||
BreadcrumbItem,
|
||||
Grid,
|
||||
Row,
|
||||
Column,
|
||||
Tabs,
|
||||
TabContent,
|
||||
Tab,
|
||||
Select,
|
||||
SelectItem,
|
||||
} from "carbon-components-svelte";
|
||||
import Header from "../components/Header.svelte";
|
||||
import Theme from "../components/Theme.svelte";
|
||||
</script>
|
||||
|
||||
<style lang="scss" global>
|
||||
@import "carbon-components-svelte/css/all";
|
||||
</style>
|
||||
|
||||
<Theme persist theme="g10">
|
||||
<Header segment="{segment}" />
|
||||
<Content style="background: none; padding: 1rem">
|
||||
<Grid>
|
||||
<slot />
|
||||
</Grid>
|
||||
</Content>
|
||||
</Theme>
|
Loading…
Add table
Add a link
Reference in a new issue