Pagination dots: Add class as a prop
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-25 14:26:31 +01:00
parent 6edbfc9def
commit f11185e940
2 changed files with 3 additions and 2 deletions

View File

@@ -3,11 +3,12 @@
const dispatch = createEventDispatcher()
// Props
export let className = ''
export let photos
export let currentIndex
</script>
<ol class="carousel__dots">
<ol class={className}>
{#each photos as dot, index}
<li
class:active={index === currentIndex}