You are currently viewing outdated (<=3.x) Chameleon documentation on our old website. For version >=4.x, check out our new website.

Current release: 3.5.0 | hub

components

WideList (code)

WideLists represent a set of WideListItems displayed in a way to organize related information.

Abonnementsnummer1108298
Naam abonneeFoo Bar
import { WideList } from '@mediahuis/chameleon-react'

Props

WideList
NameTypeDefaultRequiredDescription
childrenNode--Children displayed within the WideList (WideListItem).
elevation012341-Controls the shadow of the WideList

System Props

System Props

Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.

To read more about the system, click here to check out its dedicated page.

WideListItem
NameTypeDefaultRequiredDescription
actionNode--Contents displayed on the right. Will not be shown when clickable is also true.
avatarString--Controls the Avatar's src prop.
avatarCircularBoolean--Controls the Avatar's circular prop.
clickableBoolean--If clickable is set to true the WideListItem will show a hover state.
descriptionNode--The text written under title.
iconLeftFunctionNodeObject--Controls the as prop of the Icon on the left side.
iconRightFunctionNodeObject--Controls the as prop of the Icon on the right side.
loadingBoolean--Show a loading state (e.g. while fetching data).
titleNode--The Text written at the top of the component.

System Props

System Props

Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.

To read more about the system, click here to check out its dedicated page.

Title

default: undefined

Title denotes the upper textual part of the item.

If a string is passed in as the property, it will get the default styling. To customize styling, you can pass in a Text component.

Abonnementsnummer1108298
Naam abonneeFoo Bar
Fancy titleHello world

Description

default: undefined

Description denotes the lower textual part of the item.

If a string is passed in as the property, it will get the default styling. To customize styling, you can pass in a Text component.

Abonnementsnummer1108298
Naam abonneeFoo Bar
Hello worldFancy description

Action

default: undefined

This adds an action or extra information to your item.

Abonnementsnummer1108298
Naam abonneeFoo Bar

Clickable

default: false

Indicates to the user that the item can be interacted with, e.g. pointing them to a new page.

Avatar

default: undefined

Displays an avatar.

Naam abonneeFoo Bar

AvatarCircular

default: false

Make the avatar circular

Naam abonneeFoo Bar

IconLeft and IconRight

default: undefined

Add an icon to the WideListItem to clarify the values.

QueenWe Will Rock You
Black SabbathParanoid
MetallicaSeek and Destroy

Loading

default: false

Indicates to the user that the data to be displayed is being loaded.

Elevation

default: 1

Controls the elevation of the WideList container.

Abonnementsnummer1108298
Naam abonneeFoo Bar
Abonnementsnummer1108298
Naam abonneeFoo Bar

© Copyright 2020 Mediahuis NV. All rights Reserved