Default Timeline
-
Lorem ipsum dolor sit amet
Consectetur adipiscing elit. Aenean condimentum erat vitae elit convallis molestie. Maecenas felis nisl.
Learn more -
Lorem ipsum dolor sit amet
Consectetur adipiscing elit. Aenean condimentum erat vitae elit convallis molestie. Maecenas felis nisl.
-
Lorem ipsum dolor sit amet
Consectetur adipiscing elit. Aenean condimentum erat vitae elit convallis molestie. Maecenas felis nisl.
<script lang="ts">
import {
Timeline,
TimelineItem,
} from 'flowbite-svelte';
let timelineItems = [
{
date: 'February 2022',
title: 'Lorem ipsum dolor sit amet',
href: '/',
linkname: 'Learn more',
text: 'Consectetur adipiscing elit...'
},
{
date: 'March 2022',
title: 'Lorem ipsum dolor sit amet',
text: 'Consectetur adipiscing elit...'
},
{
date: 'February 2022',
title: 'Lorem ipsum dolor sit amet',
text: 'Consectetur adipiscing elit...'
}
];
</script>
<Timeline>
<TimelineItem {timelineItems} />
</Timeline>
Props
The component has the following props, type, and default values. See types page for type information.
Timeline
Name | Type | Default |
---|---|---|
olClass | string | 'relative border-l border-gray-200 dark:border-gray-700' |
TimelineItem
Name | Type | Default |
---|---|---|
timelineItems | TimelineItemType[] |