Updated on 2026-08-14
This commit is contained in:
parent
6369a3f33a
commit
97f63586b2
16 changed files with 229 additions and 135 deletions
|
|
@ -26,11 +26,18 @@ import com.tangem.core.ui.res.TangemThemePreview
|
|||
* @param isSelected Whether the radio button is selected
|
||||
* @param onClick Called when the user clicks the button
|
||||
* @param modifier Modifier to be applied to the button
|
||||
* @param isEnabled Whether the button click is enabled
|
||||
*/
|
||||
@Composable
|
||||
fun TangemRadioButton(isSelected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier) {
|
||||
fun TangemRadioButton(
|
||||
isSelected: Boolean,
|
||||
onClick: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
isEnabled: Boolean = true,
|
||||
) {
|
||||
Box(
|
||||
modifier = modifier.clickable(
|
||||
enabled = isEnabled,
|
||||
interactionSource = remember { MutableInteractionSource() },
|
||||
indication = rememberRipple(bounded = false, radius = TangemTheme.dimens.size16),
|
||||
onClick = onClick,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue