Skip to content

Materials

We provide off of the shelf implementations of HazeStyles which implement 'materials' of varying opacity.

Info

It is inspired by the materials available on Apple platforms, but it makes no attempt to provide the exact effects provided in iOS or other operating systems.

Usage

Everything is provided through functions on the HazeMaterials class, with each function providing a different material.

Box {
  // rest of sample from above

  LargeTopAppBar(
    modifier = Modifier
      .hazeChild(
        ...
        style = HazeMaterials.thin(),
      ),
  )
}

Download

Maven Central

repositories {
    mavenCentral()
}

dependencies {
    implementation("dev.chrisbanes.haze:haze-materials:<version>")
}