Disclosure Heading
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.
background Color
The background color of the heading.
content Color
The color of the content.
content Padding
Padding values for the content.
border Color
The color of the border.
border Width
The width of the border.
indication
The indication to be shown when the heading is interacted with.
interaction Source
The interaction source for the heading.
vertical Alignment
The vertical alignment of the content.
horizontal Arrangement
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)