Skip to main content

Collection Heading

This is the <CollectionHeading /> component

https://picsum.photos/id/237/200https://picsum.photos/id/238/200https://picsum.photos/id/239/200https://picsum.photos/id/240/200
Ted's Terrific TitansCreated September 01, 2022

Basic Usage

import CollectionHeading from '@candy/kitkat/collection-heading'

export const MyComponent = () => {
return (
<CollectionHeading
actions={
<div style={{ display: 'flex', gap: '16px' }}>
<Button appearance="secondary" colorScheme="white">
Edit
</Button>
<Button appearance="secondary" colorScheme="white">
Share
</Button>
</div>
}
dataTestId="collection-heading"
assetUrls={[
'https://picsum.photos/id/237/200',
'https://picsum.photos/id/238/200',
'https://picsum.photos/id/239/200',
'https://picsum.photos/id/240/200',
'https://picsum.photos/id/239/200',
]}
title="Ted's Terrific Titans"
description="Created September 01, 2022"
/>
)
}

Component API

NameTypeDefaultDescription
userNamestring-name
sizesm, lg-Size of the Avatar
profileUrlstring-url