Expand box/UI/drop down in AddonPreferences to show more user preferences
Right guys, thanks for he pointers, batFINGER pointed me in the right direction, I did look at the link brockmann posted and have seen that link on my quest travels. I don't know if I've found the right direction as I've used WM for the toggle but had in my head that all when hovered would point back to preferences! BUT I've got the look that I was looking for, I was after changing the icons ref toggle state but cant get anything to work but happy as it is, achieved my goal, thanks for the help, here is my code/effort:-
import bpy 

preference.py file that gets imported from _init.py
from bpy.props import ( StringProperty,
BoolProperty,
FloatProperty,
)
from bpy.types import (AddonPreferences,
)
class AddonPreferences use (bl_idname = package) if multiple file.
class PREFS_PT_MyPrefs(AddonPreferences):
bl_idname = package
# prop listings strings
some_folder = StringProperty(
    name=&quot;Assets Folder&quot;,
    subtype='DIR_PATH',
    )

# prop listings bools
bpy.types.WindowManager.prop_toggle1 = bpy.props.BoolProperty()
bpy.types.WindowManager.prop_toggle2 = bpy.props.BoolProperty()

# prop listings float
test_ing = bpy.props.FloatProperty(default=1.0)

# user prefs panel
def draw(self, context):
    layout = self.layout
    
    # prop 1
    wm = context.window_manager
    
    box = layout.box() 
    box.prop(wm, 'prop_toggle1', icon='TEXTURE', text='HEADER', expand=False, emboss=True)

    if wm.prop_toggle1:
        box.prop(self, &quot;test_ing&quot;, text='TESTING')

    # prop 2
    box = layout.box()
    box.prop(wm, 'prop_toggle2', icon='FILE' , text='HEADER', expand=False, emboss=True)

    if wm.prop_toggle2:
        box.prop(self, &quot;some_folder&quot;, text='TESTING')

    # keep adding prop toggles!!!
    # Class registered on __init__.py file