Soracom

Design System
  1. Home
  2. Design system
  3. Elements
  4. Richtip

Richtip

Overview

ds-richtip is for displaying more complex, rich content tooltips, and uses the content inside the ds-richtip__content element.

For simple tooltips that use plain text, see ds-texttip

Options

Basic usage

Basic usage - text (hover over example to view)

html
Copy
Text Content
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Basic usage - inline text (hover over example to view)

html
Copy
Global multicarrier cellular connectivity
built for IoT & M2M
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Basic usage - icon (hover over example to view)

html
Copy
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Basic usage - button (hover over example to view)

html
Copy
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Rich content

Example using html content (hover over example to view)

html
Copy

Title

Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Label
Value
Label
Value

Visual states

Visual states (hover over examples to view)

html
Copy
Alert example
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
Warning example
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
Success example
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
Info example
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Tip Position

By adding the appropriate --tip-* class, the position of the tip can be changed.

html
Copy
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

The following positions are available - (hover over labels to view examples):

--tip-top-left
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-top
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-top-right
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-left-top
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-right-top
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-left
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
default (top)
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-right
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-left-bottom
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-right-bottom
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-bottom-left
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-bottom
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.
--tip-bottom-right
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Component colors

Icon example (hover over example to view)

html
Copy
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Icon example (hover over example to view)

html
Copy
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Pinnable tips

By default the richtip content is shown when hovering over the ds-richtip__button. Using the following html structure instead will require a click to to show and hide the richtip content.

Pinnable richtip (click example to view)

html
Copy
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Javascript

The following example code improves functionality by adding a delay when moving from the trigger element to the __content element, making it easier interact with the popup tip:

document.addEventListener('DOMContentLoaded', () => {
  document.querySelectorAll('.ds-richtip').forEach((el) => {
    let t;
    el.addEventListener('mouseenter', () => {
      clearTimeout(t);
      el.classList.add('--active');
    });
    el.addEventListener('mouseleave', () => {
      t = setTimeout(() => el.classList.remove('--active'), 250);
    });
  });
});

Examples

Richtip used inside datatable head

html
Copy
Heading one Heading two Heading three

Title

Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.

Label
Value
Label
Value
Content Content Content
Content Content Content
Content Content Content
html
Copy
Example text
Global multicarrier cellular connectivity built for IoT & M2M. Pay as you go with no commitments and all the tools you need to manage and secure your IoT network and devices.