Skip to main content

Abbreviation

The abbreviation component displays abbreviated text or acronyms, revealing their full meaning or additional context through a tooltip on hover or focus.

Use to clarify shortened terms, initialisms, or technical language without interrupting the reading flow.

Support
Targets (29)

Configure the following properties on the abbreviation component.

string

A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting.

Anchor to title
title
string
Default: ''

Defines the full expansion of the abbreviation or acronym. Helps user agents and users understand the meaning of the abbreviated text.

Learn more about the abbreviation element.


Anchor to Display an abbreviationDisplay an abbreviation

Define a currency abbreviation with a full-text expansion on hover. This example displays USD inside an s-abbreviation element with the title attribute set to "United States Dollar".

Display an abbreviation

A rendered example of the abbreviation component

html

<s-abbreviation title="United States Dollar">USD</s-abbreviation>

  • Set a descriptive title: Provide a title attribute that spells out the full term so hover and buyers using assistive technology get the expanded meaning.
  • Use for genuine abbreviations only: Reserve s-abbreviation for shortened terms, acronyms, or initialisms, not for general tooltips.
  • Skip widely recognized terms: Don't expand familiar abbreviations like URL, HTML, or ft. Expanding these adds noise rather than clarity.
  • Keep abbreviation text short: Limit the visible text to the actual abbreviated form so the tooltip provides real added value.

Was this page helpful?