Skip to content

Commit

Permalink
feat(combobox docs): add no-chevron reasoning (#4070)
Browse files Browse the repository at this point in the history
* feat(combobox docs): add no-chevron reasoning

* fix: remove extra import and fix heading level

* chore: add back old import

* chore: add marginY to Callout
  • Loading branch information
serifluous authored Sep 16, 2024
1 parent 43bd80a commit f8a5583
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ This is useful when a user needs to filter a list of options, or when there are
users may find it difficult to navigate with only scrolling. Pass the `autocomplete` prop to enable
the feature.

<Callout variant="neutral" marginY="space70">
<CalloutHeading as="h4">Why doesn't the autocomplete Combobox have a chevron?</CalloutHeading>
<CalloutText>The autocomplete Combobox doesn't have a chevron because it's often used as a search input, where showing a chevron could be confusing.</CalloutText>
</Callout>

<LivePreview scope={{Combobox}} noInline language="jsx" showOverflow>
{autoCompleteExample}
</LivePreview>
Expand Down

0 comments on commit f8a5583

Please sign in to comment.