Svelte Components
Svelte component patterns. Use for web components, component libraries (Bits UI, Ark UI, Melt UI), form patterns, or third-party integration.
Specification
- Skill ID
- spences10/svelte-skills-kit/svelte-components
- Publisher
- spences10
- Repository
- svelte-skills-kit
- Installs
- 0
- Files
- 4
- Synced
- Sep 23, 2026
How to use it
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
spences10/svelte-skills-kit/svelte-componentsInstalls these files- SKILL.md
- references/component-libraries.md
- references/form-patterns.md
- references/web-components.md
What this skill tells the agent
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
defaultValueattribute 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
-->
More from spences10
Use this skill in a project
Open any RiverX project, search the Skills panel for spences10/svelte-skills-kit/svelte-components, and install it in one click.
