Skip to content

Panel

<ns-panel>

Overview

Panel is a decorative empty container that holds each section of a page.

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

It provides an area to place a layout, add an optional decoration and apply the appropriate margins. There can be more than one ns-panel on a page.

Examples

The standard panel, goes from the browser’s edge to edge

Guidance

Standard

Labelled diagram of ns-panel

Inset

Labelled diagram of the inset version of ns-panel

Key

KeyField typeGuidelines
ADecorationChoose between a no-colour background (default) or one of the decoration options.
BAnonymous slotItems placed in the anonymous slot can include a variety of different types of content and components.
CInsetThe inset attribute gives the panel a container that is not going edge to edge, for this reason, be mindful of the size and type of content that goes in this kind of panel, specially at smaller viewport sizes.

Implementation

Placement

The ns-panel component can be used in the following components:

Specification

Attributes

decoration
Property
decoration
Description
The decorative background colour of the panel with optional top and bottom offset percentages.
Type
string
Options
cyan lime lime-light navy navy-light blue forest forest-light orange orange-light red yellow white grey-light
Default
inset
Property
inset
Description
The toggle to display the inset decoration.
Type
boolean
Default
false
type
Property
type
Type
string
Default
panel

Slots

SlotPermitted tagsDescription
Anonymous slot<div> <ns-column> <ns-content> <ns-lockup> The anonymous slot for content.

Figma

Please note: The ns-panel Figma component configuration instructions are available only to members of the British Gas workspace who have access to the Nucleus Figma UI Kit.

Last updated: