The category bar component is used to display a list of categories with a selected category highlighted.
<script lang="ts" setup>
import {
CategoryBar,
CategoryBarCategory,
} from '@returnless/focus-ui';
const categories: CategoryBarCategory[] = [
{ color: 'purple', value: 2446, label: 'Product does not meet expectations' },
{ color: 'green', value: 2001, label: 'Ordered wrong product' },
{ color: 'blue', value: 1491, label: 'Wrong size or the fit not as expected' },
{ color: 'orange', value: 780, label: 'Size too small' },
{ color: 'red', value: 566, label: 'Wrong product delivered' },
];
</script>
<template>
<CategoryBar :categories="categories" />
</template>