Skip to content

Lockup

<ns-lockup>

Overview

Lockups are a promotional component that signpost to a product or service, highlighting key messages.

✨ This is an auto-generated AI summary of the ns-lockup's documentation. It may not be accurate. ✨

Use ns-lockup to engage customers and promote products or services. The more relevant and contextual the content is for the intended customers, the better.

Examples

Guidance

Standard

Labelled diagram of ns-lockup

Key

KeyField typeGuidelines
AHeadingThe recommended length is between 4 and 12 words, not exceeding 50 characters in total.
BParagraphA single, short paragraph works best. The text length should not exceed two paragraphs of 3 lines. Include emphasis with <strong>, inline links <a>, lists <ul> <ol>. Add a caveat link if required.
CCTAKeep the text short, relevant, and actionable. It should not exceed 24 characters.
DImageThere is a choice of 3 image sizes: 800 x 450px, 800 x 600px, 800 x 800px. Images should be WebP file type, the file size should be no more than 50kb.
EDecorationUse to support and highlight the content. See illustrations.

Implementation

Placement

The ns-lockup component can only be used as a child of the <ns-panel> element.

Specification

Attributes

decoration
Property
decoration
Description
The decorative illustration to provide visual aid to the content.
Type
string
Options
Refer to our illustrations.
reverse
Property
reverse
Description
The toggle to reverse the order of content and image in the lockup.
Type
boolean
Default
false
ratio
Property
ratio
Description
The aspect ratio of the image.
Type
string
Options
16 / 9 4 / 3 1 / 1
Default
4 / 3
type
Property
type
Description
The type of the lockup.
Type
standard
Default
lockbox

Slots

SlotPermitted tagsDescription
heading<h2> The heading of the lockup and needs to be related to the content.
paragraph<p> The content of the lockup.
cta<ns-cta> <a> The interactive content for the lockup.
image<ns-image> <ns-video> The media content and the visual in the media needs to be related to the content.

Specification notes

Video

  • Use <ns-video> instead of <ns-image> when including a video instead of an image. The overlap is in front of the card so neither the video nor its captions are obscured. The content wraps around the video edge. (See the Video example above)
  • It is not possible to use an illustration decoration when including <ns-video>.

Last updated: