Skip to content

RadioCards

Description ​

RadioCards is a component designed for:

  • switching between predefined sets of filter values in reports
  • switching between different reports and report views

Component composition ​

  1. RadioCards
  2. RadioCards.Item
  3. text
  4. textAddon (optional)
  5. iconAddon (optional)
  6. description (optional)

Appearance ​

RadioCards have two options of addon size and position:

  1. A small icon before the title — to highlight one item. small addon
  2. A larger icon, illustration, or mini chart addon in the left part of the item — to illustrate and distinguish the items (live example). large addon

Interaction ​

RadioCards behave like Radio: user can select only one at a time.

It's not mandatory for one item to be selected by default on page load. You can select one or leave all items unselected, depending on your case.

States ​

RadioCards item states
StateIllustrationNote
Normalnormal
Hoverhover
Selectedselected
Initial loadinginitial loading
Use this state only if there's asynchronously loaded data in the item, such as a counter.
Disableddisabled

Use in UX/UI ​

If your RadioCards have 4 or more items, stretch them to the full page width.

If your RadioCards have 3 or less items, set a fixed width limit for the whole group. This makes it easier for the user to compare and interact with the items.

Released under the MIT License.

Released under the MIT License.