Package-level declarations

Shared helper functions.

Types

Link copied to clipboard
data class A11ySkipListing(val listTitle: String, val actionLabel: String, val nextItemFocusRequester: FocusRequester)

Used to skip listing when a list of components is too large

Link copied to clipboard

Defines the border type.

Functions

Link copied to clipboard
fun DrawScope.animatedRoundedBackground(animatedScale: Animatable<Float, AnimationVector1D>, backgroundColor: Color, cornerRadius: Dp)
Link copied to clipboard
fun Modifier.focusableWithBorder(focused: State<Boolean>, enabled: Boolean = true, cornerSize: Dp = 0.dp, borderType: FocusBorderType = FocusBorderType.Default, insideBorder: Boolean = false, doubleBorders: Boolean = true): Modifier
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

Link copied to clipboard
fun Modifier.minimumTouchTargetSize(width: Dp = 48.dp, height: Dp = 48.dp): Modifier

InternalSkapaApi modifier extension copied from androidx.compose.material.TouchTarget used to guarantee minimum touch target size.

Link copied to clipboard
fun Modifier.pointerHoverHandIcon(hover: Boolean, enabled: Boolean = true): Modifier
Link copied to clipboard
fun rememberSkapaButtonIndication(resizeFactor: Float = SkapaAnimation.SizeFactors.RegularComponents, animationSpec: AnimationSpec<Float> = SkapaAnimation.PressAnimationSpec, color: Color? = null, cornersRadius: Dp = Dp.Unspecified, scale: Animatable<Float, AnimationVector1D>): Indication
Link copied to clipboard
fun Modifier.skapaShadow(cornersRadius: Dp, color: Color = Color.Unspecified, shadowBlurRadius: Dp = 16.dp, offsetY: Dp = 4.dp, offsetX: Dp = 0.dp): Modifier

InternalSkapaApi modifier extension used to apply Skapa default shadow.