SurfaceDefaults


object SurfaceDefaults


Default values used for surface.

Summary

Public functions

BorderStroke

Create the default BorderStroke used for a surface.

BorderStroke
@Composable
border(width: Dp, color: Color)

Create the default BorderStroke used for a surface, with optional overrides for width and color.

Public functions

border

Added in 1.0.0-alpha01
@Composable
fun border(): BorderStroke

Create the default BorderStroke used for a surface. Use the other overload in order to change the width or color.

border

Added in 1.0.0-alpha01
@Composable
fun border(
    width: Dp = DefaultSurfaceBorderWidth,
    color: Color = GlimmerTheme.colors.outline
): BorderStroke

Create the default BorderStroke used for a surface, with optional overrides for width and color.

Parameters
width: Dp = DefaultSurfaceBorderWidth

width of the border in Dp. Use Dp.Hairline for one-pixel border.

color: Color = GlimmerTheme.colors.outline

color to paint the border with