Skip to content

Commit

Permalink
updated: [ANDROAPP-6097] Documentation added
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAparicioAlbaAsenjo committed May 10, 2024
1 parent 51e2e11 commit 443f761
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.compose.material.ripple.LocalRippleTheme
import androidx.compose.material3.AssistChip
import androidx.compose.material3.AssistChipDefaults
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FilterChip
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
Expand All @@ -24,6 +25,18 @@ import org.hisp.dhis.mobile.ui.designsystem.theme.Ripple
import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor
import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor

/**
* DHIS2 [AssistChip] button with custom icon slot.
* wraps Material 3 [AssistChip].
* AssistChips are used to trigger actions.
* @param label: the text to be shown.
* @param icon: custom leading icon to be shown, use AssistChipDefaults in the
* Icon composable modifier to set the size of the icon.
* @param enabled: controls the enabled state. "False" will disabled the component
* @param modifier: optional [Modifier].
* @param onClick: Will be called when the user taps the chip.
* @param badge: the text to be displayed within the badge.
*/
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun AssistChip(
Expand Down

0 comments on commit 443f761

Please sign in to comment.