import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

ColumnLayout
{
    required property string label
    /**
     * Adds an asterisk after the label, informing the user that this field
     * is mandatory.
     */
    property bool mandatory: false
    spacing: Dimensions.s

    Label
    {
        text: label + (mandatory ? "*" : "")
        font: Typography.body
    }
}
