Skip to content

Svelte component patterns covering web components, headless component libraries, and form handling.

CCM score
48 of 100
skills.sh installs
583
GitHub stars
96
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Bits UI, Ark UI, and Melt UI as headless component primitives with setup guidance in a reference file
  • Includes a Quick Start with a form attribute trick for submitting forms when inputs cannot be wrapped by a form element
  • Provides a Web Components section showing customElement compiler configuration and a custom my-button element with slots
  • Designed for Svelte developers building component libraries, advanced form handling, or third-party integrations

Install

$ npx -y skills add spences10/svelte-skills-kit --skill svelte-components -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

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

Details

Repository
github.com/spences10/svelte-skills-kit
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the svelte-components skill cover?

It covers Svelte component patterns for web components, component libraries such as Bits UI, Ark UI and Melt UI, form patterns, and third-party integration. The skill includes a form attribute trick for forms that cannot wrap their inputs, plus guidance on building custom elements.

How do I install the svelte-components skill?

Run this command in a project: npx -y skills add spences10/svelte-skills-kit --skill svelte-components -y. Once installed, your agent can use Svelte component patterns when building components, forms or web components.

Which other skills sit in the same category?

The svelte-components skill is in the Frontend & UI Code category on Claude Marketplaces, alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. It focuses specifically on Svelte components rather than React or general design guidance.

More from spences10/svelte-skills-kit

All 7

Similar to Svelte Components

More Frontend & UI Code