Skip to content

Commit 0e12565

Browse files
docs: clarify register validation rules vs native HTML attributes (#1209)
1 parent bcc1dec commit 0e12565

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/content/docs/useform/register.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ This is how submitted values will look like:
4747

4848
By selecting the register option, the API table below will get updated.
4949

50+
<Admonition type="note">
51+
52+
These are validation rules, not native HTML attributes. They run based on the form's [`mode`](/docs/useform#mode) and don't block typing. To also forward `required`, `min`, `max`, `minLength`, `maxLength`, and `pattern` as native attributes on the input, set [`progressive`](/docs/useform/form) to `true` on `useForm`.
53+
54+
</Admonition>
55+
5056
<TabGroup buttonLabels={["validation", "validation and error message"]}>
5157

5258
<div style={{ background: 'var(--color-options)', padding: 20 }}>

0 commit comments

Comments
 (0)