Skip to content

Commit 5959e26

Browse files
authored
fix: add missing "use client" so that local docs build works (#9579)
1 parent 1c85bcc commit 5959e26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/dev/s2-docs/pages/s2/forms.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Well-designed form validation assists the user with specific, helpful error mess
131131
All React Spectrum form components integrate with native HTML [constraint validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation). This allows you to define constraints on each field such as required, minimum and maximum values, text formats such as email addresses, and even custom regular expression patterns. These constraints are checked by the browser when the user commits changes to the value (e.g. on blur) or submits the form.
132132

133133
```tsx render
134+
'use client';
134135
import {Form, TextField, ButtonGroup, Button} from '@react-spectrum/s2';
135136
import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
136137

0 commit comments

Comments
 (0)