Live preview

Interactive example

Loading example…

Usage

Import the component, then make it your own.

ComponentXFollow

svelte

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

<XFollow x_handle="sveltejs" size={3} />

API reference

Props accepted by the component.

2 entries in properties

PropertyTypeDefaultDescription
x_handlestring —The handle of the X (Twitter) user to link to, without the '@' symbol.
sizenumber 4The size of the button, which scales its height, font, and padding.