Skip to content

Scroller

<ns-scroller>

Overview

The scroller provides a container that horizontally scrolls the content which are too large to fit within the visible area of the window or containing element.

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

Examples

Use to display a list of items.

Guidance

Standard

Labelled diagram of ns-scroller

Key

KeyField typeGuidelines
AHeadingIntroduces an single instance or group of ns-scroller components.
BControlsHelps the user navigate the list of items incrementally in both directions
CContent itemsA list of same type components such as ns-cards, for the user to choose from.

Implementation

Placement

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

Specification

Attributes

hide-scrollbar
Property
hideScrollbar
Description
The toggle to display the scrollbar along the direction of the scroll.
Type
boolean
Default
false
show-control
Property
showControl
Description
The option to ahow the navigation controls of the scroller in specific viewport breakpoint.
Type
string
Options
always mobile desktop none
Default
always
type
Property
type
Type
string
Default
standard

Slots

SlotPermitted tagsDescription
heading<h2> <h3> The heading of the scroller that is releated the content within the scroller.
Anonymous slot<ns-card> <ns-image> <ns-action-link> The list of homogenous contents.

Events

NameDescription
scrollDispatched when the scrollbar is moved.
move-scrollerDispatched when the navigation control buttons are clicked. The event detail holds the direction of the movement.

Figma

Please note: The ns-scroller 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: