Top Bar
A container component that displays elements on its left and right side.
Usage
vue
<script setup lang="ts">
import { PrimaryButton, SecondaryButton, Topbar } from '@youcan/ui-vue3';
</script>
<template>
<Topbar>
<template #start>
<h3>All products</h3>
</template>
<template #end>
<SecondaryButton>
<template #icon>
<i class="i-youcan-magnifying-glass" />
</template>
<span>Search</span>
</SecondaryButton>
<PrimaryButton>
<template #icon>
<i class="i-youcan-plus" />
</template>
<span>Create product</span>
</PrimaryButton>
</template>
</Topbar>
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25