From c8fdba56e5949f0627bab7214b621cccab2fac71 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Mon, 24 Feb 2025 15:50:30 -0800 Subject: [PATCH] fix: autocomplete starter (#7824) * fix: autocomplete starter * fix typecheck --------- Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com> --- .../docs/Autocomplete.mdx | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/packages/react-aria-components/docs/Autocomplete.mdx b/packages/react-aria-components/docs/Autocomplete.mdx index 3ef6c86eada..19bde00f013 100644 --- a/packages/react-aria-components/docs/Autocomplete.mdx +++ b/packages/react-aria-components/docs/Autocomplete.mdx @@ -214,7 +214,6 @@ This example wraps `Autocomplete` and all of its children together into a single import type {AutocompleteProps, Key} from 'react-aria-components'; import {Menu, MenuItem} from 'react-aria-components'; import {MySearchField} from './SearchField'; -import {MyItem} from './Menu'; interface MyAutocompleteProps extends Omit { label?: string, @@ -239,14 +238,14 @@ function MyAutocomplete({label,placeholder, items, children, o } - Create new file... - Create new folder... - Assign to... - Assign to me - Change status... - Change priority... - Add label... - Remove label... + Create new file... + Create new folder... + Assign to... + Assign to me + Change status... + Change priority... + Add label... + Remove label... ``` @@ -306,7 +305,7 @@ function Example() { /*- begin highlight -*/ defaultInputValue="Adobe XD"> {/*- end highlight -*/} - {item => {item.name}} + {item => {item.name}} {/*- end highlight -*/} - {item => {item.name}} + {item => {item.name}} ); @@ -367,9 +366,9 @@ function Example() { - Cat - Dog - Kangaroo + Cat + Dog + Kangaroo