@if (direction() === 'horizontal') {
@for (item of items(); track $index; let i = $index) {
@if (i > 0) { }
@if (i < active()) { } @else { {{ i + 1 }} }
{{ item.label }}
@if (item.description) {
{{ item.description }}
}
}
} @else {
@for (item of items(); track $index; let i = $index) {
@if (i < active()) { } @else { {{ i + 1 }} }
@if (i < items().length - 1) { }
{{ item.label }}
@if (item.description) {
{{ item.description }}
}
}
}