Skip to content

Commit 97f3022

Browse files
committed
docs: change react components import
1 parent c9564c8 commit 97f3022

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ npm install @gravity-ui/timeline
2626
The timeline component can be used in React applications with the following basic setup:
2727

2828
```tsx
29-
import { TimelineCanvas } from '@gravity-ui/timeline';
30-
import { useTimeline } from '@gravity-ui/timeline';
29+
import { TimelineCanvas, useTimeline } from '@gravity-ui/timeline/react';
3130

3231
const MyTimelineComponent = () => {
3332
const { timeline } = useTimeline({
@@ -83,7 +82,7 @@ The timeline component supports several interactive events:
8382
Example of event handling:
8483

8584
```tsx
86-
import { useTimelineEvent } from '@gravity-ui/timeline';
85+
import { useTimelineEvent } from '@gravity-ui/timeline/react';
8786

8887
const MyTimelineComponent = () => {
8988
const { timeline } = useTimeline({ /* ... */ });

0 commit comments

Comments
 (0)