mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add layout prop to react-vertical-timeline-component (#29324)
* Update index.d.ts * add example for layout prop * improve type of the layout type
This commit is contained in:
committed by
Wesley Wigham
parent
d1d7068302
commit
9810b9a717
+2
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-vertical-timeline-component 2.2
|
||||
// Type definitions for react-vertical-timeline-component 2.3
|
||||
// Project: https://github.com/stephane-monnot/react-vertical-timeline
|
||||
// Definitions by: Stéphane Monnot <https://github.com/stephane-monnot>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -9,6 +9,7 @@ import * as React from "react";
|
||||
export interface VerticalTimelineProps {
|
||||
animate?: boolean;
|
||||
className?: string;
|
||||
layout?: '1-column' | '2-columns';
|
||||
}
|
||||
|
||||
export interface VerticalTimelineElementProps {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { VerticalTimeline, VerticalTimelineElement } from "react-vertical-timeli
|
||||
export default class ReactVerticalTimelineComponentTests extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<VerticalTimeline animate={false} className="vertical-timeline--red">
|
||||
<VerticalTimeline animate={false} className="vertical-timeline--red" layout='2-columns'>
|
||||
<VerticalTimelineElement
|
||||
iconOnClick={() => console.info('icon has been clicked')}
|
||||
className="vertical-timeline-element--work"
|
||||
|
||||
Reference in New Issue
Block a user