dokar3 / ChipTextField

Editable chip layout for Compose Multiplatform
Apache License 2.0
82 stars 3 forks source link

V0.4.2: Add innerModifier #52

Closed dokar3 closed 1 year ago

dokar3 commented 1 year ago

Add the innerModifier parameter to the ChipTextField() and OutlinedChipTextField(). This can be used to control the style, layout and interaction of the inner text field of the decoration box independently. For example, implementing a scrollable chip text field:

ChipTextField(
    state = ...,
    onSubmit = ::Chip,
    modifier = Modifier,
    innerModifier = Modifier
        .heightIn(max = 100.dp)
        .verticalScroll(state = rememberScrollState()),
)

BasicChipTextField() does not have this parameter because it's the inner text field.