DisclosureHeading

fun DisclosureScope.DisclosureHeading(modifier: Modifier = Modifier, enabled: Boolean = true, shape: Shape = RectangleShape, backgroundColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, contentPadding: PaddingValues = NoPadding, borderColor: Color = Color.Unspecified, borderWidth: Dp = 0.dp, indication: Indication = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, content: @Composable () -> Unit)

A heading component that can be clicked to expand or collapse the DisclosurePanel.

Parameters

modifier

Modifier to be applied to the heading.

enabled

Whether the heading is clickable.

shape

The shape of the heading.

backgroundColor

The background color of the heading.

contentColor

The color of the content.

contentPadding

Padding values for the content.

borderColor

The color of the border.

borderWidth

The width of the border.

indication

The indication to be shown when the heading is interacted with.

interactionSource

The interaction source for the heading.

verticalAlignment

The vertical alignment of the content.

horizontalArrangement

The horizontal arrangement of the content.

content

The content of the heading.


fun DisclosureScope.DisclosureHeading(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, shape: Shape = RectangleShape, backgroundColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, contentPadding: PaddingValues = NoPadding, borderColor: Color = Color.Unspecified, borderWidth: Dp = 0.dp, indication: Indication = LocalIndication.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, content: @Composable () -> Unit)