# Custom Component Property - Check Box

**URL:** <https://forums.realmacsoftware.com/t/custom-component-property-check-box/44164>\
**Category:** Elements API\
**Created:** [August 7, 2024, 7:36pm UTC](https://forums.realmacsoftware.com/t/custom-component-property-check-box/44164 "2024-08-07T19:36:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [August 7, 2024, 7:36pm UTC](https://forums.realmacsoftware.com/t/custom-component-property-check-box/44164/1 "2024-08-07T19:36:21Z")

</div>

Q1: What is the format for a Custom Component Property for a check box?

Q2: Is there a list of Propert Types?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [August 7, 2024, 8:50pm UTC](https://forums.realmacsoftware.com/t/custom-component-property-check-box/44164/2 "2024-08-07T20:50:50Z")

</div>

Hi @logrunner,

We have a switch, it’s the same as a checkbox.

We’re still working on the developer docs, they are being added to every week. Here’s a link to all the [UI Controls section](https://docs.realmacsoftware.com/elements-docs/elements-language/properties.json/ui-controls).

Here’s a code snippet to paste into your properties file. You can reference the value in the Template file by using the property name `{{display}}`.

```auto
{
  "groups": [
    {
      "title": "Item",
      "properties": [
        {
          "title": "Lights",
          "property": "display",
          "switch": {
            "trueValue": "on",
            "falseValue": "off",
            "default": true
          }
        }
      ]
    }
  ]
}

```
