File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ npm install @gravity-ui/timeline
26
26
The timeline component can be used in React applications with the following basic setup:
27
27
28
28
``` tsx
29
- import { TimelineCanvas } from ' @gravity-ui/timeline' ;
30
- import { useTimeline } from ' @gravity-ui/timeline' ;
29
+ import { TimelineCanvas , useTimeline } from ' @gravity-ui/timeline/react' ;
31
30
32
31
const MyTimelineComponent = () => {
33
32
const { timeline } = useTimeline ({
@@ -83,7 +82,7 @@ The timeline component supports several interactive events:
83
82
Example of event handling:
84
83
85
84
``` tsx
86
- import { useTimelineEvent } from ' @gravity-ui/timeline' ;
85
+ import { useTimelineEvent } from ' @gravity-ui/timeline/react ' ;
87
86
88
87
const MyTimelineComponent = () => {
89
88
const { timeline } = useTimeline ({ /* ... */ });
You can’t perform that action at this time.
0 commit comments