-
public final class AISuggestionsKt
-
-
Method Summary
Modifier and Type Method Description final static UnitAISuggestions(List<String> suggestions, Function1<String, Unit> onSuggestionClick, Modifier modifier, Dp itemMaxWidth, PaddingValues contentPadding)A horizontally scrolling row of suggestion chips, usually placed above ChatComposer on a new chat. -
-
Method Detail
-
AISuggestions
@Composable() final static Unit AISuggestions(List<String> suggestions, Function1<String, Unit> onSuggestionClick, Modifier modifier, Dp itemMaxWidth, PaddingValues contentPadding)
A horizontally scrolling row of suggestion chips, usually placed above ChatComposer on a new chat.
Each chip shows its text on up to 2 lines. Tapping a chip calls onSuggestionClick with the chip's exact text. The component doesn't send anything itself, so the caller decides what happens, for example sending the text right away. All chips in the row have the same height. Customize the chips through ChatAiComponentFactory.AISuggestionsChip.
- Parameters:
suggestions- The texts shown as chips, in order.onSuggestionClick- Called with the chip's text when the user taps a chip.modifier- Modifier to be applied to the row.itemMaxWidth- The maximum width of a chip.contentPadding- Padding around the chips.
-
-
-
-