Live preview

Interactive example

Loading example…

Usage

Import the component, then make it your own.

ComponentYoutubeChannelButton

svelte

<script>
  // Import the shared stylesheet once in your application's root layout.
  import "sveltekit-ui/style.css"
  import { YoutubeChannelButton } from "sveltekit-ui"
</script>

<YoutubeChannelButton url="https://www.youtube.com/@sveltejs" size={3} />

API reference

Props accepted by the component.

2 entries in properties

PropertyTypeDefaultDescription
urlstring —The url to link to.
sizenumber 4The size of the button, which scales its height, font, and padding.