Package-level declarations

Types

Link copied to clipboard
enum class FabColor : Enum<FabColor>

The theme colour a floating action button's container takes: the primary, secondary or tertiary container, or a raised surface for a button that should not draw the eye.

Link copied to clipboard
enum class FabSize : Enum<FabSize>

The sizes Material 3 gives a floating action button, from the smallest to the largest.

Link copied to clipboard
class ToolkitFab(val icon: ToolkitIcon, val onClick: () -> Unit, val label: String? = null, val contentDescription: String? = label, val size: FabSize = FabSize.Regular, val color: FabColor = FabColor.Primary, val expanded: Boolean = true, val visible: Boolean = true, val id: Any = label ?: contentDescription ?: icon)

A floating action button, described rather than drawn: the Toolkit's scaffolds turn a list of these into a column of buttons at the bottom end of the screen, with the Toolkit's click sound, haptics, press bounce and animated icons.