# TimelineProps (@salmonui/layout/timeline)

> The TimelineProps interface of @salmonui/layout/timeline.

Canonical: https://salmonui.dev/docs/reference/layout/timeline/TimelineProps

```ts
import type { TimelineProps } from '@salmonui/layout/timeline';
```

Entry index: https://salmonui.dev/docs/reference/layout/timeline (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/layout/timeline.md).

## Reference

Kind: interface

```ts
interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
    readonly items?: readonly TimelineItemData[] | undefined;
    readonly renderItem?: ((item: TimelineItemData, state: {
        index: number;
        first: boolean;
        last: boolean;
    }) => ReactNode) | undefined;
    readonly children?: ReactNode;
    readonly orientation?: 'vertical' | 'horizontal' | undefined;
    readonly align?: 'start' | 'end' | 'alternate' | 'alternateReverse' | undefined;
    readonly reverse?: boolean | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `items` | `readonly items?: readonly TimelineItemData[] \| undefined;` | optional | Data form of the items; wins over `children`. |
| `renderItem` | `readonly renderItem?: ((item: TimelineItemData, state: {     index: number;     first: boolean;     last: boolean; }) => ReactNode) \| undefined;` | optional | Renders each `items` entry; default its `content`. |
| `children` | `readonly children?: ReactNode;` | optional | `Timeline.Item` children. |
| `orientation` | `readonly orientation?: 'vertical' \| 'horizontal' \| undefined;` | optional | Default `'vertical'`. |
| `align` | `readonly align?: 'start' \| 'end' \| 'alternate' \| 'alternateReverse' \| undefined;` | optional | Side of the content relative to the line: `'end'` (default), `'start'`, `'alternate'`, `'alternateReverse'`; logical, follows `dir`. |
| `reverse` | `readonly reverse?: boolean \| undefined;` | optional | Reverses the DOM order, so reading order matches the visual order. |
