--- title: Autocomplete path: components/autocomplete status: Stable source: 'https://github.com/primer/css/tree/main/src/autocomplete' bundle: autocomplete --- A list of items used to show autocompleted results. Use the [``](https://github.com/github/auto-complete-element) element to add functionality. ## Default (stacked label) ```html live
  • Option 1
  • Option 2
  • Option 3
``` ## Inline label **Note**: On smaller screen sizes, the labels will be stacked. ```html live
  • Team 1 (works on Ruby architecture)
  • Team 2 (works on frontend JS architecture)
  • Team 3 (this team works on design systems)
``` ## Embedded icon with visible label ### Stacked label ```html live
  • Option 1
  • Option 2
  • Option 3
``` ### Inline label ```html live
  • Option 1
  • Option 2
  • Option 3
``` ## Embedded icon with hidden label ```html live
  • Option 1
  • Option 2
  • Option 3
``` ## Within form group ```html live
  • Option 1
  • Option 2
  • Option 3
``` ## Within input group When rendering `Autocomplete` with embedded icon within an [input group](https://primer.style/css/components/forms#input-group), add `.input-group-button--autocomplete-embedded-icon` to `.input-group-button`. ### Stacked ```html live
  • Option 1
  • Option 2
  • Option 3
``` ### Inline ```html live
  • Option 1
  • Option 2
  • Option 3
``` ## Container with `max-width` ```html live
  • Option 1
  • Option 2
  • Option 3
``` ## Additional content Autocomplete items can contain additional content, like an `.avatar`. Or use utility classes to customize the text style. ```html live
``` ## Suggester The `.suggester` component is meant for showing suggestions while typing in a larger text area. Use the [``](https://github.com/github/text-expander-element) element to add functionality. ```html live
  • #924 Markdown tables are inaccessible
  • #980 Use actual book emoji in Flexbox docs
  • #979 Add `.radio-group` component
  • #925 Release 14.0.0
  • #978 Add `.css-truncate-overflow`
```