The <Pagination>
component is an override of Starlight’s
<Pagination>
,
which has been redefined to allow for better styling.
This code originally comes from HiDeoo’s Starlight Rapide Theme,
the original source can be found here.
Usage
Overriding
If you want to extend the <Pagination>
component for your own website, you can do so by creating your own override as seen below.
- Create your own
Pagination.astro
component in the src/overrides
directory (or src/components
if you prefer).
- Add the override to your
astro.config.mjs
file.