Component > Code Title

The code snippet should have an optional title - this is to help orient the user, particularly users arriving at a page (or internal page anchor) from a link or search engine results page.

Anatomy

A string of text in Vanilla-standard typeface and weight.

Usage

Use the title to help the code snippet make sense in any context, even for users who may have just landed at our site(s) on this particular element.

States

The title has one state which is visible.

Behaviours

The title is a string of text which truncates with an ellipsis if too long.