Files
Modrinth-plus/src/routes/components/NavRow.md

27 lines
460 B
Markdown
Raw Normal View History

`NavRow` works well for most horizontal navigation with less than 10 items. It can be used with paths & query params, and supports specific path level (depths).
```svelte example raised
<script lang="ts">
2022-06-04 00:46:23 -07:00
import { NavRow } from 'omorphia'
</script>
<NavRow
2022-06-04 00:46:23 -07:00
level={1}
links={[
{
href: '/Button',
label: 'Button',
},
{
href: '/Chips',
label: 'Chips',
},
{
href: '/NavRow',
label: 'NavRow',
},
]}>
Click for fun
</NavRow>
2022-05-20 00:10:45 -07:00
```