mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add `contentStyle` and `contentArrowStyle`, see https://stephane-monnot.github.io/react-vertical-timeline/#/?a=verticaltimelineelement-props
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Type definitions for react-vertical-timeline-component 2.5
|
|
// Project: https://github.com/stephane-monnot/react-vertical-timeline, https://stephane-monnot.github.io/react-vertical-timeline
|
|
// Definitions by: Stéphane Monnot <https://github.com/stephane-monnot>
|
|
// Lukas Elmer <https://github.com/lukaselmer>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from "react";
|
|
|
|
export interface VerticalTimelineProps {
|
|
animate?: boolean;
|
|
className?: string;
|
|
layout?: '1-column' | '2-columns';
|
|
}
|
|
|
|
export interface VerticalTimelineElementProps {
|
|
id?: string;
|
|
className?: string;
|
|
date?: string;
|
|
iconOnClick?: () => void;
|
|
iconStyle?: React.CSSProperties;
|
|
icon?: React.ReactNode;
|
|
position?: string;
|
|
style?: React.CSSProperties;
|
|
visibilitySensorProps?: any;
|
|
contentStyle?: React.CSSProperties;
|
|
contentArrowStyle?: React.CSSProperties;
|
|
}
|
|
|
|
export class VerticalTimeline extends React.Component<VerticalTimelineProps> { }
|
|
export class VerticalTimelineElement extends React.Component<VerticalTimelineElementProps> { }
|