🚧 Switch to monorepo with Turbo
This commit is contained in:
23
apps/website/src/components/molecules/Pagination.svelte
Normal file
23
apps/website/src/components/molecules/Pagination.svelte
Normal file
@@ -0,0 +1,23 @@
|
||||
<style lang="scss">
|
||||
@import "../../style/molecules/pagination";
|
||||
</style>
|
||||
|
||||
<script lang="ts">
|
||||
export let ended: boolean = false
|
||||
export let current: number
|
||||
export let total: number
|
||||
</script>
|
||||
|
||||
<div class="pagination" role="button" tabindex="0"
|
||||
disabled={ended ? ended : undefined}
|
||||
on:click
|
||||
on:keydown
|
||||
>
|
||||
<div class="pagination__progress">
|
||||
<span class="current">{current}</span>
|
||||
<span>/</span>
|
||||
<span class="total">{total}</span>
|
||||
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user