Spoiler
This component is used to group content and allow to toggle them
Spoiler is a container which hides or shows child elements by clicking on the header. If spoiler is not opened child content is not mounted.
Altrone Options
In Altrone 2.2 spoiler got a new configuration options (read more). To achieve this, you can leverage either global.reduceMotion
or spoiler.reduceMotion
, effectively deactivating transitions for all spoilers throughout your application.
Properties
Property | Type | Description |
---|---|---|
|
| Header of the spoiler |
|
| If true the spoiler is opened on the initial rendering. Default value is |
|
| Deactivate all animations. Default value is |
History
Altrone 2.2
:added
reduceMotion
config optionadded
reduceMotion
prop
Altrone 2.0
: initial release
Last updated