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

Form Patterns

  • 2 installs
  • 6 repo stars
  • Updated August 3, 2026
  • spences10/devhub-crm

Provides DaisyUI v5 form patterns for inputs, selects, textareas, validation, and fieldset/legend structure.

About

Documents DaisyUI v5 form-building patterns using fieldset/legend structure, validator classes, and remote-function error handling. A developer uses it when building forms with DaisyUI v5.

  • Uses v5 fieldset/fieldset-legend structure, not the old form-control
  • Adds validator class to labels for automatic validation UI

Form Patterns by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,862 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spences10/devhub-crm --skill form-patterns

Add your badge

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

Listed on Skillselion
Installs2
repo stars6
Last updatedAugust 3, 2026
Repositoryspences10/devhub-crm

What it does

Provides DaisyUI v5 form patterns for inputs, selects, textareas, validation, and fieldset/legend structure.

Files

SKILL.mdMarkdownGitHub ↗

Form Patterns

Quick Start

<form {...my_form} class="space-y-4">
	<fieldset class="fieldset">
		<legend class="fieldset-legend">Name</legend>
		<label class="validator input w-full">
			<input
				type="text"
				name="name"
				placeholder="Your name"
				class="grow"
				required
			/>
		</label>
	</fieldset>

	{#if my_form.error}
		<div class="alert alert-error">{my_form.error}</div>
	{/if}

	<button class="btn btn-block btn-primary" type="submit"
		>Submit</button
	>
</form>

Core Principles

  • v5 structure: Use fieldset/fieldset-legend (NOT old

form-control/label-text)

  • Input wrapper: <label class="input w-full"> contains

<input class="grow">

  • Validation: Add validator class to label for automatic

validation UI

  • Selects/textareas: Apply classes directly (e.g.,

select w-full) - no wrapper

  • Error handling: Remote functions provide .error property

automatically

  • Spacing: Use space-y-4 on forms for consistent spacing

Reference Files

  • forms-guide.md - Complete DaisyUI v5

form patterns and examples

Related skills

This week in AI coding

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

unsubscribe anytime.