Optional
defaultValueIndex: numberBeta
Text to display.
Adds a label to the form.
The image below is a demo of a label that says 'Hello, world!' in form.
Image from xKingDark
Player to show this dialog to.
Optional
defaultValue: numberOptional
defaultValue: string | RawMessage
Used to create a fully customizable pop-up form for a player.
Example: showBasicModalForm.ts
Example: effectGenerator.js
Effect Generator Form Preview
Modal Form v2.0.0-beta features
@minecraft/server-ui v2.0.0-beta module currently adds headers, dividers, labels and more. The following images demostrates those features (subject to change).