BorderDefaults

Contains default values and factory functions for Border.

Since

0.2.0

Properties

Link copied to clipboard
val BorderDefaultShape: GenericShape

The default shape used when no shape is specified for a border. This shape follows the element's inner shape.

Link copied to clipboard

A border with no visual appearance.

Functions

Link copied to clipboard
@Stable
fun focusRing(color: Color, width: Dp = 2.dp, inset: Dp = 2.dp, shape: Shape = BorderDefaultShape): Border

Creates a focus ring border with an inset, commonly used for TV focus indicators.

Link copied to clipboard
@Stable
fun outline(color: Color, width: Dp = 1.dp, shape: Shape = BorderDefaultShape): Border

Creates a simple outline border with no inset.