an astro component for the slick-image-compare library
npm install slick-image-compare-astro[![MIT License][license-shield]][license-url]
this is the astro component
of the slick image compare plugin.
install the package
``Bash`
pnpm add slick-image-compare-astro
use it in your code
`js
---
import ImageCompare from 'slick-image-compare-astro';
// images to be used for the compare slider
import before from '../images/01_before.png';
import after from '../images/01_after.png';
---
afterImage={after}
beforeLabel="before"
afterLabel="after"
/>
``
[license-shield]: https://img.shields.io/github/license/lemon3/slick-image-compare?style=for-the-badge
[license-url]: https://github.com/lemon3/slick-image-compare/blob/main/packages/react/LICENSE