Android
public object SurfaceDefaults
Default values used for surface.
Functions
border
@Composable
public fun border(): BorderStroke
Create the default BorderStroke used for a surface. Use the other overload in order to change the width or color.
border
@Composable
public 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 | width of the border in Dp. Use Dp.Hairline for one-pixel border. |
| color | color to paint the border with |