Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte:element for Swiper and SwiperSlide #6181

Closed
4 tasks done
sawyerclick opened this issue Nov 1, 2022 · 0 comments
Closed
4 tasks done

Svelte:element for Swiper and SwiperSlide #6181

sawyerclick opened this issue Nov 1, 2022 · 0 comments

Comments

@sawyerclick
Copy link

Clear and concise description of the problem

As a developer using Swiper I want to control the element assigned to Swiper and SwiperSlide components using <svelte:element this={}> so that I can write semantic HTML. My specific use case will be utilizing <article> as the Swiper and <section> as the SwiperSlides.

Suggested solution

This approach could be used for both the Swiper and the SwiperSlide without impacting other props.

<script>
 export let tag = 'div'
</script>

<svelte:element this={tag}>
 ...
</svelte:element>

Alternative

No response

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

  • I'm willing to open a PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant