Skip to content
sveltekit-embed
Audio and podcasts

AnchorFm

A podcast episode from Anchor, now Spotify for Creators.

import { AnchorFm } from 'sveltekit-embed';
Svelte
1<AnchorFm
2	episode_url="purrfect-dev/embed/episodes/3-6---Effective-Testing-using-Cypress-io-e1vbg9m"
3/>

Open the episode on Anchor, choose Embed and copy the part of the src after anchor.fm/.

A taller player

The player is 100px tall by default. Pass any CSS height.

Svelte
1<AnchorFm
2	height="165px"
3	episode_url="purrfect-dev/embed/episodes/3-6---Effective-Testing-using-Cypress-io-e1vbg9m"
4/>

Props

PropTypeDefault
episode_url required

The path after anchor.fm/ in the episode embed URL.

string–
height

Any CSS height.

string'100px'
width

Any CSS width.

string'100%'
loading

lazy waits until the embed is near the viewport, eager loads it straight away.

'lazy' | 'eager''lazy'

Something wrong on this page? Edit it on GitHub.