jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
11 lines (10 loc) • 450 B
TypeScript
import type { ThemeProps } from 'jamis-core';
import type { TimelineItemProps, TimelineSchema } from './types';
export interface TimelineProps extends ThemeProps, Omit<TimelineSchema, 'items' | 'className' | 'type'> {
ref?: any;
items: Array<TimelineItemProps>;
direction?: 'vertical' | 'horizontal';
reverse?: boolean;
mode?: 'left' | 'right' | 'alternate';
}
export default function Timeline(props: TimelineProps): JSX.Element;