# # hikage-extension-compose

This is a Hikage extension dependency for Jetpack Compose component-related features.

## # Configure Dependency

You can add this module to your project using the following method.

Notice

This module relies on the Jetpack Compose compiler plugin. Please make sure that your project has integrated Jetpack Compose-related dependencies. Please refer to here
open in new window for details.

### # Version Catalog (Recommended)

Add dependency in your project's `gradle/libs.versions.toml`.

    [versions]
    hikage-extension-compose = "<version>"

    [libraries]
    hikage-extension-compose = { module = "com.highcapable.hikage:hikage-extension-compose", version.ref = "hikage-extension-compose" }

Configure dependency in your project's `build.gradle.kts`.

    implementation(libs.hikage.extension.compose)

Please change `<version>` to the version displayed at the top of this document.

### # Traditional Method

Configure dependency in your project's `build.gradle.kts`.

    implementation("com.highcapable.hikage:hikage-extension-compose:<version>")

Please change `<version>` to the version displayed at the top of this document.

## # Function Introduction

You can view the KDoc click here
open in new window.

### # Use Jetpack Compose in Hikage

You can use the following methods to embed Jetpack Compose components in a Hikage layout.

> The following example

    Hikageable {
       ComposeView(
           lparams = LayoutParams(matchParent = true)
       ) {
           Text("Hello, World!")
       }
    }

### # Use Hikage in Jetpack Compose

You can use the following methods to embed Hikage components in a Jetpack Compose layout.

> The following example

    Column(
       modifier = Modifier.fillMaxSize()
    ) {
        HikageView {
            TextView(
                lparams = LayoutParams(matchParent = true)
            ) {
                text = "Hello, World!"
                textSize = 20f
            }
        }
    }