-
public final class SearchBoxKt
-
-
Method Summary
Modifier and Type Method Description final static UnitSearchBox(Modifier modifier, SearchBoxState searchBoxState, Function2<String, Boolean, Unit> onValueChange, Boolean enabled, TextStyle textStyle, String placeHolderText, TextFieldColors colors, Function0<Unit> leadingIcon, Function0<Unit> trailingIcon, Dp elevation)Search Box compose component. final static TextFieldColorsdefaultSearchBoxColors(Color textColor, Color backgroundColor, Color onBackgroundColor)-
-
Method Detail
-
SearchBox
@Deprecated(message = implement your search box manually instead)@Composable() final static Unit SearchBox(Modifier modifier, SearchBoxState searchBoxState, Function2<String, Boolean, Unit> onValueChange, Boolean enabled, TextStyle textStyle, String placeHolderText, TextFieldColors colors, Function0<Unit> leadingIcon, Function0<Unit> trailingIcon, Dp elevation)
Search Box compose component.
- Parameters:
modifier- Modifier to be appliedsearchBoxState- search box query componentonValueChange- callback triggered on each text updatetextStyle- the style to be applied to the input textplaceHolderText- the placeholder to be displayed when the the input text is emptycolors- will be used to resolve color of the text, content and backgroundelevation- controls the size of the shadow below the surface
-
defaultSearchBoxColors
@Composable() final static TextFieldColors defaultSearchBoxColors(Color textColor, Color backgroundColor, Color onBackgroundColor)
-
-
-
-