Skip to content

Commit

Permalink
Merge pull request #235 from tarkalabs/younes/TUIButtonEnabled
Browse files Browse the repository at this point in the history
Adding the Enabling of TUIButton
  • Loading branch information
rajajawahar authored May 10, 2024
2 parents c41c9ec + f7acca5 commit d4a6bc7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ onClick = {}
leadingIcon: TarkaIcon? = null,
trailingIcon: TarkaIcon? = null,
tags: TUIButtonTags = TUIButtonTags(),
enabled : Boolean = true,
onClick: () -> Unit,
) {
val buttonColor = when (buttonStyle) {
Expand Down Expand Up @@ -180,6 +181,7 @@ onClick = {}

Button(
onClick = onClick,
enabled = enabled,
colors = buttonColor,
modifier = modifier
.height(height.size)
Expand Down

0 comments on commit d4a6bc7

Please sign in to comment.