skip section navigation

Basket

Basket is the outer wrapper for a full-height Loafkit app. it renders div#basket around your app.

usage

svelte
<script>
	import { Basket, Loaf, PageContainer } from '@ciabi/loafkit-ui';
</script>

<Basket>
	<Loaf>
		<PageContainer pageId="library" maxWidth="56rem">
			<h1>your library</h1>
			<p>saved articles will live here.</p>
		</PageContainer>
	</Loaf>
</Basket>

load the root styles once before using the shell. Basket doesn’t supply application state or a page landmark. Loaf handles scrolling, and PageContainer supplies the page’s main landmark.

composition

  • Basket
    • Navbar(optional)
    • Loaf
      • PageContainer
        • page content
    • FlavorPicker(optional)

one shell per app

Basket uses a fixed ID and doesn’t accept arbitrary HTML attributes, class or style props. put local layout on a child rather than nesting more baskets. Navbar and global FlavorPicker can sit beside Loaf within the shell; managed dialogs don’t need an extra holder there.

API reference

Basket

Component
children

the app shell contents.