commonMain.com.huanshankeji.compose.foundation.ext.Border.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-common
Show all versions of compose-multiplatform-common
Common wrappers of components (including layouts) and styles for Compose Multiplatform on (desktop/Android and web)
The newest version!
package com.huanshankeji.compose.foundation.ext
import androidx.compose.runtime.Stable
import androidx.compose.ui.unit.Dp
import com.huanshankeji.compose.foundation.BorderStroke
import com.huanshankeji.compose.ui.Modifier
import com.huanshankeji.compose.ui.graphics.Color
/** Follows the default CSS `border` behavior that is on the outside. */
@Stable
expect fun Modifier.outerBorder(border: BorderStroke): Modifier
/** Follows the default CSS `border` behavior that is on the outside. */
@Stable
expect fun Modifier.outerBorder(width: Dp, color: Color): Modifier
@Stable
expect fun Modifier.roundedCornerOuterBorder(border: BorderStroke, borderRadius: Dp): Modifier
@Stable
expect fun Modifier.roundedCornerOuterBorder(border: BorderStroke, borderRadiusPercent: Int): Modifier
@Stable
expect fun Modifier.roundedCornerOuterBorder(width: Dp, color: Color, borderRadius: Dp): Modifier
@Stable
expect fun Modifier.roundedCornerOuterBorder(width: Dp, color: Color, borderRadiusPercent: Int): Modifier
© 2015 - 2025 Weber Informatics LLC | Privacy Policy