FashionButton

fun FashionButton(modifier: Modifier = Modifier, contentDescription: String? = null, elevation: ButtonElevation = elevation( defaultElevation = 0.dp, pressedElevation = 0.dp, ), icon: AiutaIcon? = null, isEnable: Boolean = true, isLoading: Boolean = false, text: String? = null, style: FashionButtonStyle, size: FashionButtonSize, onClick: () -> Unit)

A customizable button component that supports various styles, sizes, and states. The button can display text, an icon, and a loading animation.

Parameters

modifier

The modifier to be applied to the button

contentDescription

The content description for accessibility

elevation

The elevation of the button

icon

Optional icon to be displayed in the button

isEnable

Whether the button is enabled

isLoading

Whether the button is in a loading state

text

Optional text to be displayed in the button

style

The style of the button (e.g., gradient, solid)

size

The size of the button

onClick

The callback to be invoked when the button is clicked