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

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

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.