← All Components
Canon
Navigation
Navigation should orient without demanding attention. Canon keeps the structure visible while letting the destination stay primary.
Published April 14, 2026
Available Surfaces
Navigation: primary site header with desktop and mobile statesBreadcrumbs: hierarchical wayfinding with optional home iconTabs: WAI-ARIA tab panels with keyboard navigation and bindable active state
Primary Navigation Example
<script lang="ts">
import { Navigation } from '@create-something/canon';
const links = [
{ label: 'Canon', href: '/canon' },
{ label: 'Principles', href: '/principles' }
];
</script>
<Navigation
logo="CREATE"
logoSuffix=".something"
{links}
currentPath="/canon"
ctaLabel="Contact"
ctaHref="/contact"
/> Breadcrumbs and Tabs
<script lang="ts">
import { Breadcrumbs, Tabs } from '@create-something/canon';
const items = [
{ label: 'Canon', href: '/canon' },
{ label: 'Navigation' }
];
const tabs = [
{ id: 'overview', label: 'Overview' },
{ id: 'api', label: 'API' }
];
let activeTab = 'overview';
</script>
<Breadcrumbs {items} showHomeIcon={true} />
<Tabs {tabs} bind:activeTab>
{#snippet children(tabId)}
<p>{tabId} content</p>
{/snippet}
</Tabs> Design Guidance
- Keep the primary header focused on top-level choices.
- Use breadcrumbs when the user needs a clear sense of depth.
- Use tabs for peer content, not for hiding unrelated workflows.