@MaterialScopeMarker
public final class ButtonGroupScope


Scope for the children of a buttonGroup

Summary

Public methods

final void

Adds an item to a buttonGroup

Public methods

buttonGroupItem

public final void buttonGroupItem(
    @ExtensionFunctionType @NonNull Function1<@NonNull MaterialScope, @NonNull LayoutElementBuilders.LayoutElement> content
)

Adds an item to a buttonGroup

Parameters
@ExtensionFunctionType @NonNull Function1<@NonNull MaterialScope, @NonNull LayoutElementBuilders.LayoutElement> content

the content to use for this item. Usually, this will be one of the Material 3 button or card variants.