Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
spences10 avatar

Svelte Components

  • 307 installs
  • 92 repo stars
  • Updated April 29, 2026
  • spences10/svelte-skills-kit

svelte-components is a Svelte agent skill that guides developers through reusable component patterns, headless libraries, forms, and custom elements when building Svelte or SvelteKit product UIs.

About

svelte-components is a Claude Code skill from spences10/svelte-skills-kit for authoring reusable Svelte UI with correct props, events, accessibility, and library integration. The skill documents Bits UI, Ark UI, and Melt UI setup, web component compilation via customElement, and advanced form patterns such as the HTML form attribute for inputs outside a form wrapper. Three reference guides cover component libraries, web components, and form handling, with guidance verified against Svelte 5 official docs as of 2026-05-14. Reach for svelte-components when implementing product UI slices, extension panels, or lightweight mobile shells where you need consistent Svelte component architecture instead of ad hoc markup.

  • Props slots and events
  • Accessible markup defaults
  • Composable UI structure
  • Style scoping patterns
  • Test-friendly component APIs

Svelte Components by the numbers

  • 307 all-time installs (skills.sh)
  • +9 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #750 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spences10/svelte-skills-kit --skill svelte-components

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs307
repo stars92
Last updatedApril 29, 2026
Repositoryspences10/svelte-skills-kit

How do you build accessible Svelte component libraries?

Author reusable Svelte components with correct props, slots, events, and accessibility patterns while implementing product UI slices in apps, extensions, or lightweight mobile shells.

Who is it for?

Developers shipping Svelte 5 or SvelteKit interfaces who want opinionated patterns for component libraries, forms, and custom elements.

Skip if: Teams building React, Vue, or plain HTML apps without Svelte in the stack.

When should I use this skill?

The task involves Svelte component architecture, Bits UI or Ark UI integration, custom elements, or non-trivial form markup.

What you get

Svelte component files, headless library integrations, custom element configs, and form-pattern reference implementations.

  • Svelte component files
  • Library integration patterns
  • Custom element configuration

By the numbers

  • Covers 3 headless component libraries: Bits UI, Ark UI, and Melt UI
  • Bundles 3 reference guides for libraries, web components, and forms
  • Last verified against Svelte 5 official docs on 2026-05-14

Files

SKILL.mdMarkdownGitHub ↗

Svelte Components

Quick Start

Component libraries: Bits UI (headless) | Ark UI | Melt UI (primitives)

Form trick: Use form attribute when form can't wrap inputs:

<form id="my-form" action="/submit"><!-- outside table --></form>
<table>
	<tr>
		<td><input form="my-form" name="email" /></td>
		<td><button form="my-form">Submit</button></td>
	</tr>
</table>

Web Components

// svelte.config.js
export default {
	compilerOptions: {
		customElement: true,
	},
};
<!-- MyButton.svelte -->
<svelte:options customElement="my-button" />

<button><slot /></button>

Reference Files

  • component-libraries.md - Bits

UI, Ark UI setup

  • web-components.md - Building custom

elements

  • form-patterns.md - Advanced form

handling

Notes

  • Bits UI 1.0: flexible, unstyled, accessible components for Svelte
  • Form defaultValue attribute enables easy form resets
  • Use snippets to wrap rich HTML in custom select options
  • Last verified: 2025-01-14

<!-- PROGRESSIVE DISCLOSURE GUIDELINES:

  • Keep this file ~50 lines total (max ~150 lines)
  • Use 1-2 code blocks only (recommend 1)
  • Keep description <200 chars for Level 1 efficiency
  • Move detailed docs to references/ for Level 3 loading
  • This is Level 2 - quick reference ONLY, not a manual

-->

Related skills

How it compares

Pick svelte-components over generic frontend skills when the codebase is Svelte-specific and you need library integration patterns rather than framework-agnostic CSS advice.

FAQ

Which component libraries does svelte-components cover?

svelte-components documents three headless Svelte libraries: Bits UI, Ark UI, and Melt UI. The skill links to reference guides for setup, composition, and accessible defaults when wiring primitives into product UI.

Does svelte-components support Svelte custom elements?

svelte-components shows enabling customElement in svelte.config.js and defining elements with svelte:options customElement. Native HTML slot usage is documented for packaging components as reusable web components.

Frontend Developmentfrontendtestingdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.