app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon
When using a custom Main Section, you can also use the optional Collapsible.Icon
.
NOTE: The optional icon subcomponent must receive the collapsed
state of the collapsible in order to toggle correctly. It also accepts all icon-related props (icon
, size
, and color
) for further customization. If none of these are specified, the default icon will be rendered.