KWidget

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class KWidget(val type: String, val title: String = "", val tags: Array<String> = [], val icon: String = "", val widthCells: Int = 1, val heightCells: Int = 1)(source)

Annotation marker applied directly to Composable widget functions to register them into the project's central routing registry and metadata catalog via KSP generation.

Properties

Link copied to clipboard
val heightCells: Int = 1

Default vertical grid cell span.

Link copied to clipboard

Optional icon reference string.

Link copied to clipboard

Categorization tags for filtering.

Link copied to clipboard

Default display name of the widget for catalog search listings.

Link copied to clipboard

Unique string key matching incoming KWidgetModel.type parameters.

Link copied to clipboard
val widthCells: Int = 1

Default horizontal grid cell span.