You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/dev/s2-docs/pages/react-aria/Toast.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Include a `<Button slot="close">` to allow users to dismiss the toast manually.
122
122
123
123
<InlineAlertvariant="notice">
124
124
<Heading>Accessibility</Heading>
125
-
<Content>We recommend that that the close button should be rendered as a sibling of `<ToastContent>` rather than inside it, so that screen readers announce the toast content without the close button first.</Content>
125
+
<Content>We recommend that the close button should be rendered as a sibling of `<ToastContent>` rather than inside it, so that screen readers announce the toast content without the close button first.</Content>
*`isRequired` indicates that a field must have a value before the form can be submitted.
163
163
*`minValue` and `maxValue` specify the minimum and maximum value in a date picker or number field.
164
-
*`minLength` and `maxLength` specify the minimum and length of text input.
164
+
*`minLength` and `maxLength` specify the minimum and maximum length of text input.
165
165
*`pattern` provides a custom [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that a text input must conform to.
166
166
*`type="email"` and `type="url"` provide builtin validation for email addresses and URLs.
167
167
@@ -261,7 +261,7 @@ By default, invalid fields block forms from being submitted. To avoid this, use
261
261
262
262
Client side validation is useful to give the user immediate feedback, but data should always be validated on the backend for security and reliability. Your business logic may also include rules which cannot be validated on the frontend.
263
263
264
-
To display server validation errors, set the the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.
264
+
To display server validation errors, set the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.
Copy file name to clipboardExpand all lines: packages/dev/s2-docs/pages/s2/collections.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ export const description = 'How to load and render collections.';
8
8
9
9
# Collections
10
10
11
-
<PageDescription>Many components display a collection of items, and provide functionality such as keyboard navigation, and selection. Learn how to load and render collections using React Spectrums's compositional API.</PageDescription>
11
+
<PageDescription>Many components display a collection of items, and provide functionality such as keyboard navigation, and selection. Learn how to load and render collections using React Spectrum's compositional API.</PageDescription>
*`isRequired` indicates that a field must have a value before the form can be submitted.
156
156
*`minValue` and `maxValue` specify the minimum and maximum value in a date picker or number field.
157
-
*`minLength` and `maxLength` specify the minimum and length of text input.
157
+
*`minLength` and `maxLength` specify the minimum and maximum length of text input.
158
158
*`pattern` provides a custom [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that a text input must conform to.
159
159
*`type="email"` and `type="url"` provide builtin validation for email addresses and URLs.
160
160
@@ -190,7 +190,7 @@ import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
190
190
191
191
<InlineAlertvariant="informative">
192
192
<Heading>Localization</Heading>
193
-
<Content>The default error messages are localized by the browser using the browser/operating system language setting. React Spectrums's [Provider](Provider) has no effect on validation errors.</Content>
193
+
<Content>The default error messages are localized by the browser using the browser/operating system language setting. React Spectrum's [Provider](Provider) has no effect on validation errors.</Content>
194
194
</InlineAlert>
195
195
196
196
### Custom validation
@@ -260,7 +260,7 @@ By default, invalid fields block forms from being submitted. To avoid this, use
260
260
261
261
Client side validation is useful to give the user immediate feedback, but data should always be validated on the backend for security and reliability. Your business logic may also include rules which cannot be validated on the frontend.
262
262
263
-
To display server validation errors, set the the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.
263
+
To display server validation errors, set the `validationErrors` prop on the [Form](Form) component. This accepts an object that maps each field's `name` prop to one or more error messages. These are displayed as soon as the `validationErrors` prop is set, and cleared after the user modifies each field's value.
0 commit comments