Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class GrowingTextFieldDefaults(val label: String, val placeholder: String = "", val icon: ImageVector? = null, val iconContentDescription: String? = null, val minLines: Int = 3, val maxLines: Int = Int.MAX_VALUE, val maxCharacters: Int? = null, val keyboardType: KeyboardType = KeyboardType.Text, val capitalization: KeyboardCapitalization = KeyboardCapitalization.Sentences, val textStyle: TextStyle = TextStyle.Default, val shape: Shape = RoundedCornerShape(16.dp), val colors: GrowingTextFieldColors? = null, val animateContentChanges: Boolean = true)
Link copied to clipboard
data class SearchBarDefaults(val label: String, val initiallyExpanded: Boolean = false, val containerColor: Color = Color.Unspecified, val contentColor: Color = Color.Unspecified, val cursorColor: Color = Color.Unspecified, val shape: Shape = RoundedCornerShape(18.dp), val textStyle: TextStyle = TextStyle.Default, val searchIcon: ImageVector = Icons.Default.Search, val clearIcon: ImageVector = Icons.Default.Clear, val closeIcon: ImageVector = Icons.Default.Close, val searchContentDescription: String = label, val clearContentDescription: String = "Clear search", val closeContentDescription: String = "Close search")
Visual and behavioural defaults shared by controlled and uncontrolled search bars.
Link copied to clipboard
Functions
Link copied to clipboard
fun JchuCountedField(title: String, value: String, onValueChange: (String) -> Unit, maxLength: Int, countField: CountField = CountField(), styleLabel: TextStyle = LocalTextStyle.current)
Author: @Jeluchu
Link copied to clipboard
Link copied to clipboard
fun JchuExpandableSearch(query: String, onQueryChange: (String) -> Unit, defaults: SearchBarDefaults, modifier: Modifier = Modifier, onExpandedChange: (Boolean) -> Unit = {}, onSearch: (String) -> Unit = {})
Expandable search field with internally managed expansion state.
fun JchuExpandableSearch(query: String, onQueryChange: (String) -> Unit, expanded: Boolean, onExpandedChange: (Boolean) -> Unit, defaults: SearchBarDefaults, modifier: Modifier = Modifier, onSearch: (String) -> Unit = {})
Expandable search field whose expansion state is owned by the caller.
Link copied to clipboard
fun JchuGrowingTextField(value: String, onValueChange: (String) -> Unit, defaults: GrowingTextFieldDefaults, modifier: Modifier = Modifier)
Link copied to clipboard
fun JchuSearchField(modifier: Modifier = Modifier, value: String, onValueChange: (String) -> Unit, labelText: String = String.empty(), styleLabel: TextStyle = LocalTextStyle.current, focusManager: FocusManager = LocalFocusManager.current, searchField: SearchField = SearchField(), searchContentDescription: String = String.empty(), clearContentDescription: String = String.empty())
Link copied to clipboard