Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 629 Bytes

search_inline.md

File metadata and controls

30 lines (23 loc) · 629 Bytes

Forms/SearchInline

Creates an inline search input.

Search inline example

<div>
    <Label>SEARCH EXAMPLE</Label>
    <SearchInline
        placeholder="Search..."
        value={this.state.value}
        onChange={this.handleChange}
        results={this.state.results}
    />
</div>

Props

results={array}
List of search results.

onSelect={function}
Called when a search result is clicked. Receives the result value and index as arguments.

See also Forms/Input for more props.

CSS

Adds dp-search-inline to the root element.