UNPKG

rsuite

Version:

A suite of react components

39 lines (38 loc) 1.39 kB
import React from 'react'; import { WithAsProps, RsRefForwardingComponent } from '../internals/types'; export interface TimelineItemProps extends WithAsProps { /** * Whether the last item * * @internal * This props is supposed to be used only by Timeline component internally * User should never rely on this prop * * @deprecated * This prop was used to indicate whether an item is the last item so that it gets highlighted. * Now we can specify whether an item should be highlighted individually. * Use {@link INTERNAL_active} instead */ last?: boolean; /** Customizing the Timeline item */ dot?: React.ReactNode; /** The content of the component */ children?: React.ReactNode; /** You can use a custom element type for this component */ as?: React.ElementType; /** Customized time of timeline **/ time?: React.ReactNode; /** * @internal * This props is supposed to be used only by Timeline component internally * User should never rely on this prop */ INTERNAL_active?: boolean; } /** * The `Timeline.Item` component is used to set the layout of the child element in the `Timeline` component. * * @see https://rsuitejs.com/compo◊nents/timeline */ declare const TimelineItem: RsRefForwardingComponent<'div', TimelineItemProps>; export default TimelineItem;