Skip to content

Commit 7355c93

Browse files
authored
docs: add a hint about using different ways to group validated field with hint
close #4393
1 parent 7e498bd commit 7355c93

File tree

1 file changed

+4
-0
lines changed
  • packages/docs/src/routes/(routes)/components/validator

1 file changed

+4
-0
lines changed

packages/docs/src/routes/(routes)/components/validator/+page.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ min="1" max="10"
213213

214214
```html
215215
<form class="$$fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4">
216+
<!--
217+
You can use any way of grouping the validated field with the hint
218+
as long as the hint is preceded by only one validated field.
219+
-->
216220
<fieldset class="$$fieldset">
217221
<label class="$$label">Email</label>
218222
<input type="email" class="$$input $$validator" placeholder="Email" required />

0 commit comments

Comments
 (0)