DefaultSearchResultItemContent

Default implementation of SearchResultItemContent using default colors and icons.

To customize specific part while keeping others default, you can use Kotlin delegation:

object MySearchResultItemContent : SearchResultItemContent by DefaultSearchResultItemContent {
@Composable
override override fun Title(state: SearchResultItemState) {
SearchResultItemTitleComposable(
state = state,
icons = SearchResultItemComposableDefaults.icons,
colors = SearchResultItemComposableDefaults.colors().copy(
titleColor = Color.Red
)
)
}
}

Functions

Link copied to clipboard
open override fun Address(state: SearchResultItemState)

Composable function that renders the short item's address.

Link copied to clipboard
open override fun Alert(state: SearchResultItemState)

Composable function that displays important alerts or status messages.

Link copied to clipboard
open override fun Attributes(state: SearchResultItemState)

Composable function that displays key attributes or features as tags.

Link copied to clipboard

Composable function that renders EV charging station status information.

Link copied to clipboard
open override fun Distance(state: SearchResultItemState)

Composable function that shows the distance from the user's location.

Link copied to clipboard
open override fun Rating(state: SearchResultItemState)

Composable function that displays the item's rating and review count.

Link copied to clipboard
open override fun Subtitle(state: SearchResultItemState)

Composable function that renders the subtitle or secondary description.

Link copied to clipboard
open override fun Title(state: SearchResultItemState)

Composable function that renders the main title/name of the search result item.