Media group
<ns-media-group>
Overview
A component to display a group of related media elements.
✨ This is an auto-generated AI summary of the ns-media-group's documentation. It may not be accurate. ✨
Examples
To visually narrate a story use bento
type.
Guidance
Implementation
Placement
The ns-media-group
component can only be used as a child of the <ns-lockup>
element.
Specification
Attributes
media
- Property
media
- Description
- The list of media elements that needs to be displayed as a group.
- Type
Array
alt
- Property
alt
- Description
- The alternate text of the media group and needs to be related to the visual content in the media elements.
- Type
string
- Default
type
- Property
type
- Description
- The type of the media group.
- Type
bento
- Default
standard
Specification notes
media
attribute
The structure of the each of media
object.
Key | Options | Description |
---|---|---|
type | image | The type of the media that needs to be displayed. |
src | Refer Assets for choice of image sizes. | The link to the media. |
ratio | 1 / 1 4 / 3 4 / 5 16 / 9 | The aspect ratio of the media. |
Figma
Please note: The ns-media-group
Figma component configuration instructions
are available only to members of the British Gas workspace who have access to the
Nucleus Figma UI Kit.
(Opens in Figma).
Last updated: