commonMain.io.github.lyxnx.compose.pine.Divider.kt Maven / Gradle / Ivy
package io.github.lyxnx.compose.pine
import androidx.compose.runtime.Composable
import androidx.compose.runtime.NonRestartableComposable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
/**
* A horizontal divider
*
* @param modifier modifier to apply to the divider
* @param thickness the divider thickness
* @param color color of the divider
*/
@Composable
@NonRestartableComposable
public fun HorizontalDivider(
modifier: Modifier = Modifier,
thickness: Dp = 1.dp,
color: Color = PineTheme.colors.grey200
) {
androidx.compose.material3.HorizontalDivider(
modifier = modifier,
thickness = thickness,
color = color
)
}
/**
* A vertical divider
*
* @param modifier modifier to apply to the divider
* @param thickness the divider thickness
* @param color color of the divider
*/
@Composable
@NonRestartableComposable
public fun VerticalDivider(
modifier: Modifier = Modifier,
thickness: Dp = 1.dp,
color: Color = PineTheme.colors.grey200
) {
androidx.compose.material3.VerticalDivider(
modifier = modifier,
thickness = thickness,
color = color
)
}