<mds-pref> <mds-pref-animation></mds-pref-animation></mds-pref><mds-pref> <mds-pref-animation></mds-pref-animation> <mds-pref-contrast></mds-pref-contrast> <mds-pref-mode></mds-pref-mode> <mds-pref-consumption></mds-pref-consumption></mds-pref><mds-pref> <mds-pref-animation mode="reduce"></mds-pref-animation></mds-pref><mds-pref id="prefs"> <mds-pref-animation></mds-pref-animation></mds-pref>
<script> document.getElementById('prefs').addEventListener('mdsPrefChange', (event) => { // event.detail.preference === 'animation' console.log('Preferenza animazioni aggiornata', event.detail); });</script><!-- In the panel: on the parent and on each child --><mds-pref size="sm"> <mds-pref-animation size="sm"></mds-pref-animation> <mds-pref-contrast size="sm"></mds-pref-contrast></mds-pref>
<!-- Acceptable when used standalone --><mds-pref-animation size="sm"></mds-pref-animation><!-- Place once, near the root - no UI is rendered --><mds-pref controller> <mds-pref-animation></mds-pref-animation></mds-pref>