Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add missing external imports for Timeline Component #947

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading