The toggleTargetId is deprecated for the toggle component that allows to define a custom control for the toggle state.
A button that will expand and collapse a card with the help of collapse attribute.
<button toggleTargetId="cardId">
Click Me to Expand and re-click me to Collapse
</button>
<card id="cardId" collapsed>
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</card>
where the following attributes are mandatory:
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
<text>Lorem Ipsum
<itext id="collapsableTextId" collapsed>
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</itext> [[?toggleTargetId=collapsableTextId#|More/Less...]]
</text>
Lorem Ipsum Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. More/Less…
This animation needs to set attributes on the component to toggle and the control (link or button).
id="componentId" collapsed
toggleTargetId="componentIdToToggle"