Skip to content

G. Rating and Audio Settings

<fb-rating>

Interactive star rating. Activating the currently selected star clears the rating to 0.

html
<fb-rating max="5"></fb-rating>
AttributeTypeDefaultDescription
maxstring'5'Maximum number of stars (observed)
readonlybooleanfalseDisables click, keyboard, and hover-preview interactions when present (observed)
valuestringRead-only reflection of the current rating

CSS Parts: stars, star

Each star part exposes data-value and aria-checked. Filled or previewed stars also receive data-filled.

Events:

js
el.addEventListener('fb-rating-change', e => {
  console.log('Rating:', e.detail.value, 'path:', e.detail.path);
});

<fb-output-selector>

Audio output device selector.

html
<fb-output-selector></fb-output-selector>
AttributeTypeDefaultDescription
device-namestringRead-only reflection of the current device name

CSS Parts: select

Events:

js
el.addEventListener('fb-output-change', e => {
  console.log('Output device:', e.detail.index, e.detail.name);
  console.log('outputId:', e.detail.outputId, 'deviceId:', e.detail.deviceId);
});

<fb-dsp-preset-selector>

DSP preset selector.

html
<fb-dsp-preset-selector></fb-dsp-preset-selector>
AttributeTypeDefaultDescription
preset-namestringRead-only reflection of the active preset name

CSS Parts: select

Events:

js
el.addEventListener('fb-dsp-change', e => {
  console.log('DSP preset:', e.detail.index, e.detail.name);
});

<fb-replaygain-selector>

ReplayGain mode selector.

html
<fb-replaygain-selector></fb-replaygain-selector>
AttributeTypeDefaultDescription
modestringRead-only reflection: none, track, album, or auto

CSS Parts: select

Events:

js
el.addEventListener('fb-replaygain-change', e => {
  console.log('ReplayGain mode:', e.detail.mode);
});