Setup and configurationGenerating your first component

Generating your first component

Everything has been set up, now you can generate your first component.

./gradlew lumo --add Button

This will generate a Button component in the components folder under the specified directory in your module.

The generated component can be a single file or a folder with multiple files.

A component may require other components to function properly. For example, Button requires Surface, so Surface will be automatically generated along with it.

        • Button.kt
        • Surface.kt
        • ButtonElevation.kt
        • Ripple.kt
      • Theme.kt
      • Colors.kt
      • Typography.kt
    • lumo.properties