daisy-form-patterns

Generate DaisyUI v5 forms with inputs, selects, textareas, and validation.

222|42|Updated Jan 24, 2017
One-click install
npx skills add https://github.com/natelandau/dotfiles --skill daisy-form-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: daisy-form-patterns
Source: https://github.com/natelandau/dotfiles/tree/main/dotfiles/.assets/claude/skills/daisy-ui-forms
Command: npx skills add https://github.com/natelandau/dotfiles --skill daisy-form-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of modern, responsive, and validated forms using DaisyUI v5's component patterns, saving developers time and ensuring consistency.

Core Features & Use Cases

  • Standardized Form Structure: Provides correct HTML structure for inputs, selects, and textareas.
  • Validation Integration: Demonstrates how to apply validation classes and helper text.
  • Error Handling: Shows how to display errors returned from remote functions.
  • Use Case: Quickly implement a user registration form with email, password, and username fields, complete with validation and clear error messages, adhering to DaisyUI v5 best practices.

Quick Start

Use the daisy-form-patterns skill to generate a basic form with name and email input fields.

Frequently Asked Questions about daisy-form-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build DaisyUI forms with correct HTML structure?

To build DaisyUI forms, use the fieldset and legend elements for grouping, wrap inputs in designated containers, and apply spacing utilities for responsive layouts.

How do I add validation classes to DaisyUI v5 form inputs?

DaisyUI v5 validation classes are applied directly to input, select, and textarea elements to visually indicate success or error states, supplemented by helper text for user feedback.

What is the best way to display remote validation errors in DaisyUI?

Display remote validation errors in DaisyUI by applying error-specific validation classes to the relevant form inputs and rendering the returned error messages as helper text.

Does DaisyUI v5 provide spacing utilities for form fields?

Yes, DaisyUI v5 provides spacing utilities that integrate with form structure to ensure consistent vertical and horizontal alignment between inputs, selects, and textareas.

Can I use fieldset and legend to structure DaisyUI forms?

Yes, fieldset and legend are the recommended structural elements in DaisyUI v5 for grouping related form controls and providing accessible labels for input sections.