Last active
January 19, 2021 09:07
-
-
Save danangponorogo/ddd0cd552d80aa76479a026a00996f5d to your computer and use it in GitHub Desktop.
Simple Breadcrumbs Component for Svelte (using routify)
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
<script> | |
import Breadcrumbs from "./Breadcrumbs.svelte"; | |
let items = [ | |
{ href: "/", text: "Dashboard" }, | |
{ href: "/reports", text: "Annual reports" }, | |
{ href: "/reports/2019", text: "2019" }, | |
]; | |
</script> | |
<Breadcrumbs {items} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment