import { WideList } from '@mediahuis/chameleon-react'
< WideList >
< WideListItem title = " Abonnementsnummer " description = " 1108298 " />
< WideListItem title = " Naam abonnee " description = " Foo Bar " />
</ WideList >
Props WideList Name Type Default Required Description children Node - - Children displayed within the WideList (WideListItem). elevation 0 1 2 3 4 1 - Controls the shadow of the WideList
System Props marginProps m, mb, ml, mr, mt, mx, my
flexProps alignSelf, flex, flexBasis, flexGrow, flexShrink, order
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 Name Type Default Required Description action Node - - Contents displayed on the right. Will not be shown when clickable is also true. avatar String - - Controls the Avatar's src prop. avatarCircular Boolean - - Controls the Avatar's circular prop. clickable Boolean - - If clickable is set to true the WideListItem will show a hover state. description Node - - The text written under title. iconLeft Function Node Object - - Controls the as prop of the Icon on the left side. iconRight Function Node Object - - Controls the as prop of the Icon on the right side. loading Boolean - - Show a loading state (e.g. while fetching data). title Node - - The Text written at the top of the component.
System Props marginProps m, mb, ml, mr, mt, mx, my
flexProps alignSelf, flex, flexBasis, flexGrow, flexShrink, order
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.
< WideList >
< WideListItem title = " Abonnementsnummer " description = " 1108298 " />
< WideListItem title = " Naam abonnee " description = " Foo Bar " />
< WideListItem
title = {
< Text
fontFamily = " primary "
color = " blueBase "
fontWeight = " bold "
size = " Heading4 "
>
Fancy title
</ Text >
}
description = " Hello world "
/>
</ WideList >
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.
Hello world Fancy description
< WideList >
< WideListItem title = " Abonnementsnummer " description = " 1108298 " />
< WideListItem title = " Naam abonnee " description = " Foo Bar " />
< WideListItem
title = " Hello world "
description = {
< Text
fontFamily = " primary "
color = " blueBase "
fontWeight = " bold "
size = " Heading4 "
>
Fancy description
</ Text >
}
/>
</ WideList >
Action default: undefined
This adds an action or extra information to your item.
< WideList >
< WideListItem
title = " Abonnementsnummer "
description = " 1108298 "
action = { < LinkText > Link Text </ LinkText > }
/>
< WideListItem
title = " Naam abonnee "
description = " Foo Bar "
action = { < Tooltip label = " This is a label " /> }
/>
</ WideList >
Clickable default: false
Indicates to the user that the item can be interacted with, e.g. pointing them
to a new page.
< WideList >
< WideListItem
title = " Abonnementsnummer "
description = " 1108298 "
clickable
as = " a "
href = " #test "
/>
</ WideList >
Avatar default: undefined
Displays an avatar.
< WideList >
< WideListItem
title = " Naam abonnee "
description = " Foo Bar "
avatar = " https://images.unsplash.com/photo-1502378735452-bc7d86632805?w=200 "
/>
</ WideList >
AvatarCircular default: false
Make the avatar circular
< WideList >
< WideListItem
title = " Naam abonnee "
description = " Foo Bar "
avatar = " https://images.unsplash.com/photo-1502378735452-bc7d86632805?w=200 "
avatarCircular = { true }
/>
</ WideList >
IconLeft and IconRight default: undefined
Add an icon to the WideListItem to clarify the values.
Metallica Seek and Destroy
< WideList >
< WideListItem
title = " Queen "
description = " We Will Rock You "
iconLeft = { < Icon as = { PodcastFill } color = " primaryBase " /> }
iconRight = { < Icon as = { Add } /> }
/>
< WideListItem
title = " Black Sabbath "
description = " Paranoid "
iconLeft = { PodcastFill }
iconRight = { Add }
/>
< WideListItem
title = " Metallica "
description = " Seek and Destroy "
iconLeft = { < PodcastFill /> }
iconRight = { < Add /> }
/>
</ WideList >
Loading default: false
Indicates to the user that the data to be displayed is being loaded.
< WideList >
< WideListItem loading = { true } />
</ WideList >
Elevation default: 1
Controls the elevation of the WideList container.
< WideList mb = { 6 } >
< WideListItem title = " Abonnementsnummer " description = " 1108298 " />
< WideListItem title = " Naam abonnee " description = " Foo Bar " />
</ WideList >
< WideList elevation = { 3 } >
< WideListItem title = " Abonnementsnummer " description = " 1108298 " />
< WideListItem title = " Naam abonnee " description = " Foo Bar " />
</ WideList >