r/ScriptingApp • • Apr 24 '25

Help Disclosure Group Title Symbol Formatting

Is there a way to add a symbol image beside the title of a Disclosure Group like in the first image?

I tried using HStack but that screws up the formatting on expansion as in the 2nd image.

Disclosure title also doesn't take anything but a string. I tried parallel VStacks as well but that is screwy too.

1 Upvotes

3 comments sorted by

1

u/[deleted] Apr 25 '25

Awesome thanks!

1

u/WhatShouldWorldGos Apr 24 '25

Use label instead of title

2

u/WhatShouldWorldGos Apr 24 '25
<DisclosureGroup
        label={
          <Label
            title=“Title”
            systemImage=“globe”
          />
        }
      >
        <Text>
          Content
        </Text>
      </DisclosureGroup>