
To understand how a component visible in the IDE is created in code, see the component's added-at property in the UI Inspector. UI DSL Showcase Tab: Tab Name (Link to sources of demonstration tab) It describes some UI DSL basics and contains explanations, tips, a list of all available components, and many examples with links to the source code.Īll sections below refer to relevant tab available in this demo:

It is highly recommended taking a look at the UI DSL demo available via Tools | Internal Actions | UI | UI DSL Showcase (see Internal Actions if not available in your IDE instance). The Kotlin UI DSL Version 2 functions are located in the .dsl.builder package. For this purpose, use custom Swing components from the IntelliJ Platform or the standard ones. The Kotlin UI DSL is not intended to build general UIs, like tool windows controls that trigger some actions and do not contain any input components bound to state objects. The library is written in Kotlin and makes it easy to develop user interfaces like dialogs and settings pages.

The forms are built by using a declarative Kotlin syntax and follow the official IntelliJ Platform UI conventions described in the IntelliJ Platform UI Guidelines. Kotlin UI DSL Version 2 allows creating UI forms with input components bound to state objects.

See Kotlin UI DSL Version 1 for targeting earlier releases. This page describes API available in IntelliJ Platform releases 2021.3 and later only.
