# TimeOptionContext (@salmonui/calendars/date-picker)

> The TimeOptionContext interface of @salmonui/calendars/date-picker: Context of renderOption.

Canonical: https://salmonui.dev/docs/reference/calendars/date-picker/TimeOptionContext

```ts
import type { TimeOptionContext } from '@salmonui/calendars/date-picker';
```

Also exported from `@salmonui/calendars/time-picker`.

Entry index: https://salmonui.dev/docs/reference/calendars/date-picker (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/calendars/date-picker.md).

## Reference

Kind: interface

```ts
interface TimeOptionContext {
    readonly time: PlainTime;
    readonly text: string;
    readonly selected: boolean;
    readonly disabled: boolean;
    readonly index: number;
}
```

Context of `renderOption`.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `time` | `readonly time: PlainTime;` |  |  |
| `text` | `readonly text: string;` |  | The formatted option text. |
| `selected` | `readonly selected: boolean;` |  |  |
| `disabled` | `readonly disabled: boolean;` |  |  |
| `index` | `readonly index: number;` |  |  |
