Skip to content

Change the icon in the carousel navigation #1998

Discussion options

You must be logged in to vote

Yup! Just slot em in using the next-icon / previous-icon

https://shoelace.style/components/carousel/#slots

<sl-carousel>
  <sl-icon name="arrow-left" slot="previous-icon"></sl-icon>
  <sl-icon name="arrow-right" slot="next-icon"></sl-icon>
</sl-carousel>

Here's an example:

https://codepen.io/paramagicdev/pen/wvZOzbp?editors=1000

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@davidrmcelroy
Comment options

Answer selected by davidrmcelroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants