Soracom

Design System

Plan

DS Plan component for showing Soracom SIM plans

Overview

ds-plan is a simple self-contained Web Component for showing a Soracom plan tag. The component will sanitize the plan text, and display the correctly formatted official plan name and color.

Options

Simply include the plan name inside the ds-plan element.

<ds-plan>[plan name]</ds-plan>

html
Copy

<ds-plan plan="[plan name]"></ds-plan>

html
Copy

Inline usage

The ds-plan component can be used inline within text, automatically matching the surrounding font size.

html
Copy

Sizing

html
Copy

Bundle

html
Copy

IMSI

html
Copy

Icons

Use icon to add an icon to the rendered plan tag. Use bundle-icon and imsi-icon to add icons to the bundle and IMSI labels.

Plan icon

html
Copy

Bundle icon

html
Copy

IMSI icon

html
Copy

Checkbox

Use type="checkbox" to render a checkbox input inside the plan tag, allowing users to select plans in a form.

html
Copy

Radio

Use type="radio" with a shared name attribute to create a radio group, allowing users to select a single plan.

html
Copy

Supported plans

Plan keyNameColorExample
plan01splan01splan01s
plan01sldvplan01s-LDVplan01s-LDV
plandplan-Dplan-D
planddatasmsplan-D (Data/SMS)plan-D (Data/SMS)
planddataonlyplan-D (Data-only)plan-D (Data-only)
planduplan-DUplan-DU
plankplan-Kplan-K
plank2plan-K2plan-K2
plankm1plan-KM1plan-KM1
planarc01planArc01planArc01
planmcplan-MCplan-MC
planmuplan-MUplan-MU
plannt1planNT1planNT1
planp1planP1planP1
planusplan-USplan-US
planusmaxplan-US-maxplan-US-max
planusnaplan-US-NAplan-US-NA
planfx1planFX1planFX1
planx1planX1planX1
planx2planX2planX2
planx3planX3planX3
planx3euplanX3-EUplanX3-EU
planxm1planXM1planXM1

Attributes

Attribute Values Default Description
plan Plan name string Sets the plan name via attribute instead of inner text. Unknown keys render with the fallback color and normalized label.
bundle Bundle label string Displays a bundle label alongside the plan name.
imsi 15 digit IMSI string Displays an IMSI label alongside the bundle label.
icon Icon name Adds an icon to the rendered plan tag as a --icon-* modifier.
bundle-icon Icon name Adds an icon to the bundle label as a --icon-* modifier.
imsi-icon Icon name Adds an icon to the IMSI label as a --icon-* modifier.
size xsmall, small, medium, large Controls the size of the plan tag.
type checkbox, radio Renders an input element inside the tag for use in forms.
name Input name string Sets the name attribute on the internal input. Use a shared name across radio-type plans to create a radio group.
css global global Sets the CSS loading mode. Global CSS is the default and does not need to be specified.

Manifest

The component manifest describes this component's API: its modifiers, structure, data attributes, CSS custom properties, accessibility notes, and example markup. It is consumed by tooling such as AI assistants and code generators.

Latest version: https://assets.soracom.io/sds/3.39.12/ds-plan/manifest.json?v=3.39.12

manifest.json
Copy

plans.json

Supported SORACOM plan keys, display names, background color classes, and text color classes.

Source: https://assets.soracom.io/sds/3.39.12/ds-plan/plans.json

plans.json
Copy