Index of every page on this site: llms.txt
All skills
spences10 avatar

/svelte-components

@5fe4989
Run it yourself

Svelte component patterns. Use for web components, component libraries (Bits UI, Ark UI, Melt UI), form patterns, or third-party integration.

Use this Skill: https://skilld.dev/gh/spences10/svelte-skills-kit/svelte-components

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescomponent-libraries.md

≈502 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Component Libraries

Bits UI

Headless, unstyled, accessible components for Svelte.

pnpm add bits-ui
<script>
	import { Button } from 'bits-ui';
</script>

<Button.Root class="my-button">Click me</Button.Root>

Key features:

  • Fully unstyled - bring your own CSS
  • Accessible by default (ARIA, keyboard nav)
  • Composable compound components

Docs: bits-ui.com


Ark UI

Full-featured component library with Svelte support.

pnpm add @ark-ui/svelte
<script>
	import { Dialog } from '@ark-ui/svelte';
</script>

<Dialog.Root>
	<Dialog.Trigger>Open</Dialog.Trigger>
	<Dialog.Backdrop />
	<Dialog.Positioner>
		<Dialog.Content>
			<Dialog.Title>Title</Dialog.Title>
			<Dialog.Description>Description</Dialog.Description>
			<Dialog.CloseTrigger>Close</Dialog.CloseTrigger>
		</Dialog.Content>
	</Dialog.Positioner>
</Dialog.Root>

Docs: ark-ui.com


Melt UI

Low-level primitives (builders) for maximum flexibility.

pnpm add @melt-ui/svelte
<script>
	import { createDialog } from '@melt-ui/svelte';

	const {
		elements: { trigger, portalled, overlay, content, title, close },
		states: { open },
	} = createDialog();
</script>

<button use:melt={$trigger}>Open</button>

{#if $open}
	<div use:melt={$portalled}>
		<div use:melt={$overlay} />
		<div use:melt={$content}>
			<h2 use:melt={$title}>Title</h2>
			<button use:melt={$close}>Close</button>
		</div>
	</div>
{/if}

Key difference: Melt uses builders (functions) instead of components.

Docs: melt-ui.com


Which to Choose?

Library Style Approach Best For
Bits UI Unstyled Components Quick accessible UI
Ark UI Unstyled Components Feature-rich apps
Melt UI Unstyled Builders Maximum control

All three work with Svelte 5 runes.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo4 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides educational content and best practices for building web components and forms using Svelte. It includes references to popular, well-maintained UI libraries like Bits UI, Ark UI, and Melt UI. No security risks were identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    4/4 files flagged

Signed by skilld at 5fe4989. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago

README badge

README badge for spences10/svelte-skills-kit/svelte-components