mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-08 04:00:38 +02:00
41 lines
1.1 KiB
Markdown
41 lines
1.1 KiB
Markdown
# @digitransit-component/digitransit-component-suggestion-item
|
|
|
|
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
|
|
|
|
## SuggestionItem
|
|
|
|
SuggestionItem renders suggestions for digitransit-autosuggest component.
|
|
|
|
### Examples
|
|
|
|
```javascript
|
|
<SuggestionItem
|
|
item={suggestionObject}
|
|
content={['Pysäkki', 'Kuusitie', 'Helsinki', 'H1923']}
|
|
loading={false}
|
|
/>
|
|
```
|
|
|
|
<!-- This file is automatically generated. Please don't edit it directly:
|
|
if you find an error, edit the source file (likely index.js), and re-run
|
|
./scripts/generate-readmes in the digitransit-component project. -->
|
|
|
|
---
|
|
|
|
This module is part of the Digitransit-ui project. It is maintained in the
|
|
[HSLdevcom/digitransit-ui](https://github.com/HSLdevcom/digitransit-ui) repository, where you can create
|
|
PRs and issues.
|
|
|
|
### Installation
|
|
|
|
Install this module individually:
|
|
|
|
```sh
|
|
$ npm install @digitransit-component/digitransit-component-suggestion-item
|
|
```
|
|
|
|
Or install the digitransit-component module that includes it as a class:
|
|
|
|
```sh
|
|
$ npm install @digitransit-component/digitransit-component
|
|
```
|