diff --git a/docs/components/timeline.md b/docs/components/timeline.md index 9560561..9ef6f68 100644 --- a/docs/components/timeline.md +++ b/docs/components/timeline.md @@ -1,6 +1,7 @@ # Vue Timeline Component - Flowbite @@ -13,62 +14,62 @@ import TimelineWithIconsExample from './timeline/examples/TimelineWithIconsExamp import { Timeline, TimelineItem, TimelinePoint, TimelineTime, TimelineContent, TimelineTitle, TimelineButton } from 'flowbite-vue' ``` ## Timeline with icons +You can add icons by passing svg icons as slot to `` +
@@ -77,61 +78,126 @@ import { Timeline, TimelineItem, TimelinePoint, TimelineTime, TimelineContent, T import { Timeline, TimelineItem, TimelinePoint, TimelineTime, TimelineContent, TimelineTitle, TimelineButton } from 'flowbite-vue' + +``` +## Timeline with icons +`horizontal` prop makes timeline horizontal +
+ + + +```vue + + ``` diff --git a/docs/components/timeline/examples/TimelineExample.vue b/docs/components/timeline/examples/TimelineExample.vue index 652bdf4..52ae8a2 100644 --- a/docs/components/timeline/examples/TimelineExample.vue +++ b/docs/components/timeline/examples/TimelineExample.vue @@ -1,57 +1,55 @@ diff --git a/docs/components/timeline/examples/TimelineHorizontalExample.vue b/docs/components/timeline/examples/TimelineHorizontalExample.vue new file mode 100644 index 0000000..dc83df5 --- /dev/null +++ b/docs/components/timeline/examples/TimelineHorizontalExample.vue @@ -0,0 +1,58 @@ + + diff --git a/docs/components/timeline/examples/TimelineWithIconsExample.vue b/docs/components/timeline/examples/TimelineWithIconsExample.vue index a3e47f5..0a28213 100644 --- a/docs/components/timeline/examples/TimelineWithIconsExample.vue +++ b/docs/components/timeline/examples/TimelineWithIconsExample.vue @@ -1,60 +1,58 @@ diff --git a/src/components/Timeline/Timeline.vue b/src/components/Timeline/Timeline.vue index b030d3f..85d11c9 100644 --- a/src/components/Timeline/Timeline.vue +++ b/src/components/Timeline/Timeline.vue @@ -1,14 +1,24 @@ diff --git a/src/components/Timeline/TimelineBody.vue b/src/components/Timeline/TimelineBody.vue new file mode 100644 index 0000000..d9c5bec --- /dev/null +++ b/src/components/Timeline/TimelineBody.vue @@ -0,0 +1,3 @@ + diff --git a/src/components/Timeline/TimelineContent.vue b/src/components/Timeline/TimelineContent.vue index d9c5bec..7c27116 100644 --- a/src/components/Timeline/TimelineContent.vue +++ b/src/components/Timeline/TimelineContent.vue @@ -1,3 +1,11 @@ + + diff --git a/src/components/Timeline/TimelineItem.vue b/src/components/Timeline/TimelineItem.vue index fdd58b5..1d97666 100644 --- a/src/components/Timeline/TimelineItem.vue +++ b/src/components/Timeline/TimelineItem.vue @@ -1,5 +1,19 @@ + + diff --git a/src/components/Timeline/TimelinePoint.vue b/src/components/Timeline/TimelinePoint.vue index 56684a7..175fb18 100644 --- a/src/components/Timeline/TimelinePoint.vue +++ b/src/components/Timeline/TimelinePoint.vue @@ -1,13 +1,16 @@ diff --git a/src/index.ts b/src/index.ts index c92b24f..a40897f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,9 +35,10 @@ export { default as Table } from './components/Table/Table.vue' export { default as Timeline } from './components/Timeline/Timeline.vue' export { default as TimelineItem } from './components/Timeline/TimelineItem.vue' export { default as TimelinePoint } from './components/Timeline/TimelinePoint.vue' +export { default as TimelineContent } from './components/Timeline/TimelineContent.vue' export { default as TimelineTime } from './components/Timeline/TimelineTime.vue' export { default as TimelineTitle } from './components/Timeline/TimelineTitle.vue' -export { default as TimelineContent } from './components/Timeline/TimelineContent.vue' +export { default as TimelineBody } from './components/Timeline/TimelineBody.vue' export { default as TimelineButton } from './components/Timeline/TimelineButton.vue' export { default as Toast } from './components/Toast/Toast.vue' export { default as ToastProvider } from './components/Toast/components/ToastProvider/ToastProvider.vue'