Components / Media
YouTube Follow Button
ComponentA button linking to a Youtube Channel with a customizable size and handle.
Live preview
Interactive exampleUsage
Import the component, then make it your own.
Component
YoutubeChannelButton<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
| Property | Type | Default | Description |
|---|---|---|---|
url | string | — | The url to link to. |
size | number | 4 | The size of the button, which scales its height, font, and padding. |