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
Picker follows the [Collection Components](../react-stately/collections.html) API, accepting both static and dynamic collections. Similar to [Menu](MenuTrigger.html), Picker accepts `<Item>` elements as children, each with a `key` prop. Basic usage of Picker, seen in the example above, shows multiple options populated with a string. Static collections, as in this example, can be used when the full list of options is known ahead of time.
55
+
Picker follows the [Collection Components](../react-stately/collections.html) API, accepting both static and dynamic collections. Similar to [Menu](Menu.html), Picker accepts `<Item>` elements as children, each with a `key` prop. Basic usage of Picker, seen in the example above, shows multiple options populated with a string. Static collections, as in this example, can be used when the full list of options is known ahead of time.
56
56
57
57
Dynamic collections, as shown below, can be used when the options come from an external data source such as an API call, or update over time. Providing the data in this way allows Picker to automatically cache the rendering of each item, which dramatically improves performance.
Copy file name to clipboardExpand all lines: packages/react-aria-components/docs/ColorSlider.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
@@ -457,7 +457,7 @@ A `<SliderOutput>` renders the current value of the color slider as text.
457
457
458
458
### SliderTrack
459
459
460
-
The `<SliderTrack>` component renders a gradient repreresenting the colors that can be selected for the color channel, and contains a `<ColorThumb>` element.
460
+
The `<SliderTrack>` component renders a gradient representing the colors that can be selected for the color channel, and contains a `<ColorThumb>` element.
461
461
462
462
<details>
463
463
<summarystyle={{fontWeight: 'bold'}}><ChevronRightsize="S" /> Show props</summary>
Copy file name to clipboardExpand all lines: packages/react-aria-components/docs/FileTrigger.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
@@ -68,7 +68,7 @@ function Example(){
68
68
69
69
## Features
70
70
71
-
A file input can be created with an `<input type=“file”>` element, but this supports limited styling options and may not integrate well with the overall design of a website or application. To overcome this, `FileTrigger` extends the functionality of the standard file input element by working with a pressable child such as a `Button` to create accessible file inputs that can be style as needed.
71
+
A file input can be created with an `<input type=“file”>` element, but this supports limited styling options and may not integrate well with the overall design of a website or application. To overcome this, `FileTrigger` extends the functionality of the standard file input element by working with a pressable child such as a `Button` to create accessible file inputs that can be styled as needed.
72
72
73
73
***Customizable** – Works with any pressable React Aria or React Spectrum component, and custom components built with [usePress](usePress.html).
Copy file name to clipboardExpand all lines: packages/react-aria-components/docs/Tree.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ import {
252
252
253
253
A tree can be built using the [<ul>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul), [<li>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li),
254
254
and [<ol>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol), but is very limited in functionality especially when it comes to user interactions.
255
-
HTML lists are meant for static content, rather than heirarchies with rich interactions like focusable elements within cells, keyboard navigation, item selection, sorting, etc.
255
+
HTML lists are meant for static content, rather than hierarchies with rich interactions like focusable elements within cells, keyboard navigation, item selection, sorting, etc.
256
256
`Tree` helps achieve accessible and interactive tree components that can be styled as needed.
257
257
258
258
***Item selection** – Single or multiple selection, with optional checkboxes, disabled items, and both `toggle` and `replace` selection behaviors.
@@ -632,9 +632,9 @@ Items may also have an action specified by directly applying `onAction` on the `
632
632
id="ivysaur"
633
633
title="Ivysaur">
634
634
<MyTreeItem
635
-
onAction={() =>alert(`Opening Venisaur...`)}
636
-
id="venisaur"
637
-
title="Venisaur" />
635
+
onAction={() =>alert(`Opening Venusaur...`)}
636
+
id="venusaur"
637
+
title="Venusaur" />
638
638
</MyTreeItem>
639
639
</MyTreeItem>
640
640
</Tree>
@@ -660,8 +660,8 @@ Tree items may also be links to another page or website. This can be achieved by
660
660
href="https://pokemondb.net/pokedex/ivysaur"
661
661
target="_blank">
662
662
<MyTreeItem
663
-
id="venisaur"
664
-
title="Venisaur"
663
+
id="venusaur"
664
+
title="Venusaur"
665
665
href="https://pokemondb.net/pokedex/venusaur"
666
666
target="_blank" />
667
667
</MyTreeItem>
@@ -691,7 +691,7 @@ Note that you are responsible for the styling of disabled items, however, the se
691
691
{/*- begin highlight -*/}
692
692
<MyTreeItemid="ivysaur"title="Ivysaur"isDisabled>
693
693
{/*- end highlight -*/}
694
-
<MyTreeItemid="venisaur"title="Venisaur" />
694
+
<MyTreeItemid="venusaur"title="Venusaur" />
695
695
</MyTreeItem>
696
696
</MyTreeItem>
697
697
</Tree>
@@ -713,7 +713,7 @@ When `disabledBehavior` is set to `selection`, interactions such as focus, dragg
0 commit comments