Files
2026-05-28 21:45:21 +02:00

35 lines
737 B
QML

import QtQuick
import QtQuick.Layouts
import qs.Commons
ColumnLayout {
id: root
property string label: ""
property string description: ""
property bool enableDescriptionRichText: false
opacity: enabled ? 1.0 : 0.6
spacing: Style.marginXXS
Layout.fillWidth: true
Layout.bottomMargin: Style.marginM
NText {
text: root.label
pointSize: Style.fontSizeXL
font.weight: Style.fontWeightSemiBold
color: Color.mPrimary
visible: root.label !== ""
}
NText {
text: root.description
pointSize: Style.fontSizeM
color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap
Layout.fillWidth: true
visible: root.description !== ""
richTextEnabled: root.enableDescriptionRichText
}
}