← スキル一覧に戻る

form-patterns
by spences10
⭐ 6🍴 0📅 2026年1月21日
SKILL.md
name: form-patterns
prettier-ignore
description: DaisyUI v5 form patterns. Use for inputs, selects, textareas, validation, and form structure with fieldset/legend.
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 oldform-control/label-text) - Input wrapper:
<label class="input w-full">contains<input class="grow"> - Validation: Add
validatorclass to label for automatic validation UI - Selects/textareas: Apply classes directly (e.g.,
select w-full) - no wrapper - Error handling: Remote functions provide
.errorproperty automatically - Spacing: Use
space-y-4on forms for consistent spacing
Reference Files
- forms-guide.md - Complete DaisyUI v5 form patterns and examples
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です