focusableWithBorder

fun Modifier.focusableWithBorder(focused: State<Boolean>, enabled: Boolean = true, cornerSize: Dp = 0.dp, borderType: FocusBorderType = FocusBorderType.Default, insideBorder: Boolean = false, doubleBorders: Boolean = true): Modifier(source)

InternalSkapaApi modifier extension used to apply Skapa keyboard navigation border to focusable components

Parameters

focused

Component focus state.

enabled

if component is enabled. Disable components doesn't get focus border.

cornerSize

radius size of the border.

borderType

defines FocusBorderType depending in the Component.

insideBorder

indicates if the borders should be drawn inside the component.

doubleBorders

when set as true and extra border will be drawn in the gap between the component and border. This is use for components used in different surface colors to improve contrast ratio.


fun Modifier.focusableWithBorder(focused: State<Boolean>, enabled: Boolean = true, shape: CornerBasedShape, borderType: FocusBorderType = FocusBorderType.Default, insideBorder: Boolean = false, doubleBorders: Boolean = true, paddingValues: PaddingValues = PaddingValues()): Modifier(source)

InternalSkapaApi modifier extension used to apply Skapa keyboard navigation border to focusable components

Parameters

focused

Component focus state.

enabled

if component is enabled. Disable components doesn't get focus border.

shape

defines the border shape CornerBasedShape.

borderType

defines FocusBorderType depending in the Component.

insideBorder

indicates if the borders should be drawn inside the component.

doubleBorders

when set as true and extra border will be drawn in the gap between the component and border. This is use for components used in different surface colors to improve contrast ratio.

paddingValues

additional padding to be applied when calculating the border size and position. This allows the border to extend beyond the component boundaries by the specified padding amount.