| annotation |
|
|
| badge |
|
|
| Banner.kt |
A banner component that displays text-based content, including an optional title
and optional positive/negative action buttons.
This overload is intended for simple use cases where the banner content consists
only of strings rather than full composable slots. It provides a lightweight API
for common notification, error, or confirmation patterns.
Only the provided elements are shown. If a title is omitted, only the message
is displayed. Action buttons are shown only if their corresponding text values
(and optionally their click callbacks) are provided.
@param messageText The main message text displayed in the banner. This is required.
@param modifier The [Modifier] to be applied to the banner container.
@param titleText Title displayed above the message. Use this for short,
attention-grabbing headings.
@param colors Defines the color styling for the banner, including background
and content color. Defaults to [BannerColors.bannerColors].
@param border [BorderStroke] drawn around the banner container.
@param closeButtonContentDescription The content description for the close button.
@param positiveButtonText Label for a positive/confirm action button
(e.g., “OK”, “Retry”, “Allow”). If `null`, the button is not shown.
@param negativeButtonText Label for a negative/cancel action button
(e.g., “Dismiss”, “Cancel”). If `null`, the button is not shown.
@param positiveOnClick Callback invoked when the positive button is clicked.
@param negativeOnClick Callback invoked when the negative button is clicked.
@param onCloseButtonClick Callback invoked when the banner’s close button
is clicked.
|
19668 |
| button |
|
|
| Dropdown.kt |
UI for a dropdown and a contextual menu that can be expanded or collapsed.
@param label Text to be displayed above the dropdown.
@param placeholder The text to be displayed when no [dropdownItems] are selected.
@param dropdownItems The [MenuItem.CheckableItem]s that should be shown when the dropdown is expanded.
@param modifier Modifier to be applied to the dropdown layout.
@param dropdownMenuTextWidth The optional width to allocate for the text for each [MenuItem.CheckableItem].
If not specified, the best width will be determined based on the dropdown items provided.
@param isInLandscapeMode Whether the device is in landscape mode.
|
8929 |
| menu |
|
|
| modifier |
|
|
| progressbar |
|
|
| RadioCheckmark.kt |
UI for a radio checkmark. Also known as an option button.
@param isSelected Whether the radio checkmark is selected or not.
@param modifier [Modifier] to be applied to the radio checkmark.
@param colors [RadioCheckmarkColors] to use for styling the radio checkmark.
|
3383 |
| searchbar |
|
|
| SelectableChip.kt |
Default layout of a selectable chip.
@param text [String] displayed in this chip.
@param selected Whether this should be shown as selected.
@param modifier [Modifier] used to be applied to the layout of the chip.
@param selectableChipColors The color set defined by [SelectableChipColors] used to style the chip.
@param onClick Callback for when the user taps this chip.
|
4812 |
| snackbar |
|
|
| text |
|
|
| textfield |
|
|
| theme |
|
|
| utils |
|
|