Skip to content
On this page

Radio card

Radio cards are specialized cards that represent radios in Funkwhale's interface. Radio cards populate with the following information:

  • The radio title
  • The radio description

The card includes a play button that starts the radio.

PropData typeRequired?Description
radioRadio objectYesThe radio the card represents
smallBooleanNoControls whether the card is small or normal sized
blueBooleanNoCreates a blue card
redBooleanNoCreates a red card
purpleBooleanNoCreates a purple card
greenBooleanNoCreates a green card
yellowBooleanNoCreates a yellow card

Card colors

You can choose what color a radio card is by passing a supported color as a prop.

Blue

INFO

This is the default color. If you don't pass a color, a blue card is rendered.

template
<fw-radio-card blue :radio="radio" />

Red

template
<fw-radio-card red :radio="radio" />

Purple

template
<fw-radio-card purple :radio="radio" />

Green

template
<fw-radio-card green :radio="radio" />

Yellow

template
<fw-radio-card yellow :radio="radio" />

Card sizes

You can control the size of a radio card by adding a small prop.

Normal card

Normal radio cards contain the radio title and description.

template
<fw-radio-card :radio="radio" />

Small card

Small radio cards contain only the radio title.

template
<fw-radio-card small :radio="radio" />