Skip to content

Commit

Permalink
Update src/content/design-system/components/autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
KateMacdonald authored Feb 7, 2024
1 parent d9a1e2b commit a40c2f5
Showing 1 changed file with 33 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Autocomplete fields come in four different sizes (heights), which align to the r
```jsx
<div>
<Autocomplete width="30" className="mb-6"
hintMessage="This is a small autocomplete"
hintMessage="This is a Small autocomplete"
label="Label"
noOptionsMessage="No options"
size="small"
Expand All @@ -19,7 +19,7 @@ size="small"
</AutocompleteItem>
</Autocomplete>
<Autocomplete width="30" className="mb-6"
hintMessage="This is a medium autocomplete"
hintMessage="This is a Medium autocomplete"
label="Label"
noOptionsMessage="No options"
size="medium"
Expand All @@ -34,21 +34,36 @@ size="medium"
Blue
</AutocompleteItem>
</Autocomplete>
<Autocomplete label="Large example" size="large" className="mb-6">
<AutocompleteItem key="red panda">Red Panda</AutocompleteItem>
<AutocompleteItem key="cat">Cat</AutocompleteItem>
<AutocompleteItem key="dog">Dog</AutocompleteItem>
<AutocompleteItem key="aardvark">Aardvark</AutocompleteItem>
<AutocompleteItem key="kangaroo">Kangaroo</AutocompleteItem>
<AutocompleteItem key="snake">Snake</AutocompleteItem>
</Autocomplete>
<Autocomplete label="X-Large example" size="xlarge">
<AutocompleteItem key="red panda">Red Panda</AutocompleteItem>
<AutocompleteItem key="cat">Cat</AutocompleteItem>
<AutocompleteItem key="dog">Dog</AutocompleteItem>
<AutocompleteItem key="aardvark">Aardvark</AutocompleteItem>
<AutocompleteItem key="kangaroo">Kangaroo</AutocompleteItem>
<AutocompleteItem key="snake">Snake</AutocompleteItem>
</Autocomplete>
<Autocomplete width="30" className="mb-6"
hintMessage="This is a Large autocomplete"
label="Label"
noOptionsMessage="No options"
size="large"
>
<AutocompleteItem>
Green
</AutocompleteItem>
<AutocompleteItem>
Purple
</AutocompleteItem>
<AutocompleteItem>
Blue
</AutocompleteItem>
</Autocomplete>
<Autocomplete width="30" className="mb-6"
hintMessage="This is a xLarge autocomplete"
label="Label"
noOptionsMessage="No options"
size="xlarge"
>
<AutocompleteItem>
Green
</AutocompleteItem>
<AutocompleteItem>
Purple
</AutocompleteItem>
<AutocompleteItem>
Blue
</AutocompleteItem>
</div>
```

0 comments on commit a40c2f5

Please sign in to comment.