prismicio / prismic-svelte

Svelte components and helpers to fetch and present Prismic content
https://prismic.io/docs/technical-reference/prismicio-svelte
Apache License 2.0
21 stars 6 forks source link

feat: add `<PrismicLink>` component #4

Closed samlfair closed 1 year ago

samlfair commented 1 year ago

Types of changes

Description

Add a <PrismicLink> component that can accept a Link field, Content Relationship field, or entire Document, and output an <a> element.

<PrismicLink> accepts all SvelteKit link options and all HTML link attributes as props. It also accepts a Link Resolver.

Checklist:

puppies

samlfair commented 1 year ago

@angeloashmore Thanks again for your feedback. I think I've addressed everything, and I responded to your question about rel="external". Let me know what you think. When things are looking good, I can merge and publish this.

angeloashmore commented 1 year ago

It looks great to me! Let's merge and publish. 🙂

samlfair commented 1 year ago

Published 🚀