Qt Quick Contacts List view

 // Copyright (C) 2026 The Qt Company Ltd.
 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

 import QtQuick 2.0

 Rectangle {
     //radius: 5
     height: buttonLabel.height
     color: "black"

     border {
         width: 1
         color: "darkred"
     }

     signal clicked
     property alias buttonText: buttonLabel.text

     Text {
         id: buttonLabel
         font.pixelSize: 12
         anchors.centerIn: parent
         color: "white"
     }

     MouseArea {
         anchors.fill: parent
         onPressed: {
             parent.color = "white"
         }
         onReleased: {
             parent.color = "black"
             parent.clicked()
         }
     }

 }