BasicComponent

fun BasicComponent(modifier: Modifier = Modifier, title: String? = null, titleColor: BasicComponentColors = BasicComponentDefaults.titleColor(), summary: String? = null, summaryColor: BasicComponentColors = BasicComponentDefaults.summaryColor(), startAction: @Composable () -> Unit? = null, endActions: @Composable RowScope.() -> Unit? = null, bottomAction: @Composable () -> Unit? = null, insideMargin: PaddingValues = BasicComponentDefaults.InsideMargin, onClick: () -> Unit? = null, onClickLabel: String? = null, role: Role? = null, holdDownState: Boolean = false, enabled: Boolean = true, interactionSource: MutableInteractionSource? = null)

A basic component with Miuix style. Widely used in other extension components.

Parameters

modifier

The modifier to be applied to the BasicComponent.

title

The title of the BasicComponent.

titleColor

The color of the title.

summary

The summary of the BasicComponent.

summaryColor

The color of the summary.

startAction

The Composable content on the start side of the BasicComponent.

endActions

The Composable content on the end side of the BasicComponent.

bottomAction

The Composable content at the bottom of the BasicComponent.

insideMargin

The margin inside the BasicComponent.

onClick

The callback when the BasicComponent is clicked.

onClickLabel

Optional label describing the click action for accessibility services.

role

The semantic Role of the BasicComponent for accessibility services.

holdDownState

Used to determine whether it is in the pressed state.

enabled

Whether the BasicComponent is enabled.

interactionSource

The MutableInteractionSource for the BasicComponent. The value should remain null or non-null for the lifetime of this component; switching across recompositions will allocate a new internal source and lose pending interactions.


fun BasicComponent(modifier: Modifier = Modifier, startAction: @Composable () -> Unit? = null, endActions: @Composable RowScope.() -> Unit? = null, bottomAction: @Composable () -> Unit? = null, insideMargin: PaddingValues = BasicComponentDefaults.InsideMargin, onClick: () -> Unit? = null, onClickLabel: String? = null, role: Role? = null, holdDownState: Boolean = false, enabled: Boolean = true, interactionSource: MutableInteractionSource? = null, content: @Composable ColumnScope.() -> Unit)

A basic component with Miuix style. Widely used in other extension components.

Parameters

modifier

The modifier to be applied to the BasicComponent.

startAction

The Composable content on the start side of the BasicComponent.

endActions

The Composable content on the end side of the BasicComponent.

bottomAction

The Composable content at the bottom of the BasicComponent.

insideMargin

The margin inside the BasicComponent.

onClick

The callback when the BasicComponent is clicked.

onClickLabel

Optional label describing the click action for accessibility services.

role

The semantic Role of the BasicComponent for accessibility services.

holdDownState

Used to determine whether it is in the pressed state.

enabled

Whether the BasicComponent is enabled.

interactionSource

The MutableInteractionSource for the BasicComponent. The value should remain null or non-null for the lifetime of this component; switching across recompositions will allocate a new internal source and lose pending interactions.

content

The content of the BasicComponent.