Skip to content

Commit

Permalink
docs: add missing external imports for Timeline Component (#947)
Browse files Browse the repository at this point in the history
Co-authored-by: Mateo Wartelle <mateo.wartelle@abt.com>
  • Loading branch information
MateoWartelle and Mateo Wartelle authored Sep 8, 2023
1 parent 2f2f961 commit 759a7e6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/docs/components/timeline/timeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ import { Timeline } from 'flowbite-react';

Use the `<Timeline>` React component and the child components to create a list of items inside the timeline component featuring the date, title, description and even a button.

<CodePreview importFlowbiteReact="Button, Timeline" title="Default timeline">
<CodePreview
importExternal="import { HiArrowNarrowRight } from 'react-icons/hi';"
importFlowbiteReact="Button, Timeline"
title="Default timeline"
>
<Timeline>
<Timeline.Item>
<Timeline.Point />
Expand Down Expand Up @@ -65,7 +69,11 @@ Use the `<Timeline>` React component and the child components to create a list o

Use this example to show the timeline component and the child components in a vertical alignment.

<CodePreview importFlowbiteReact="Button, Timeline" title="Vertical timeline">
<CodePreview
importExternal="import { HiCalendar } from 'react-icons/hi';"
importFlowbiteReact="Button, Timeline"
title="Vertical timeline"
>
<Timeline>
<Timeline.Item>
<Timeline.Point icon={HiCalendar} />
Expand Down Expand Up @@ -110,7 +118,7 @@ Use this example to show the timeline component and the child components in a ve

Use the `horizontal` prop to show the timeline component and the child components in a horizontal alignment.

<CodePreview title="Stepper timeline">
<CodePreview importExternal="import { HiCalendar } from 'react-icons/hi';" title="Stepper timeline">
<Timeline horizontal>
<Timeline.Item>
<Timeline.Point icon={HiCalendar} />
Expand Down

1 comment on commit 759a7e6

@vercel
Copy link

@vercel vercel bot commented on 759a7e6 Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.