<ActivityTimeline
label="Project activity"
entries={[
{
id: 'created',
avatar: <Avatar value="Alex" label="Alex" />,
header: 'Alex',
content: 'Created the project',
timestamp: 'Monday',
actions: (
<Button onClick={() => setTimelineMessage('Opened project')}>
Open project
</Button>
),
},
{
id: 'updated',
avatar: <Avatar value="Morgan" label="Morgan" />,
header: 'Morgan',
content: 'Updated the plan',
timestamp: 'Tuesday',
},
]}
/>
<p aria-live="polite">{timelineMessage}</p>