[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow-ui](../../README) / [index](../README) / CalendarProps

# Interface: CalendarProps

Defined in: [flow-ui/src/components/Calendar.tsx:42](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L42)

## Indexable

> \[`key`: `string`\]: `unknown`

## Properties

### bind?

> `optional` **bind?**: `unknown`

Defined in: [flow-ui/src/components/Calendar.tsx:50](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L50)

Bound

#### Expose

`YYYY-MM-DD`, for a picker.

With this set the calendar runs on the client: months page instantly and a
chosen day syncs once. Prefer it to `onSelect` for anything that is picking
rather than browsing.

***

### name?

> `optional` **name?**: `string`

Defined in: [flow-ui/src/components/Calendar.tsx:51](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L51)

***

### month?

> `optional` **month?**: `string`

Defined in: [flow-ui/src/components/Calendar.tsx:53](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L53)

Month to show, `YYYY-MM`. Defaults to the month of `value`, else today.

***

### value?

> `optional` **value?**: `string`

Defined in: [flow-ui/src/components/Calendar.tsx:55](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L55)

Selected day, `YYYY-MM-DD`.

***

### onSelect?

> `optional` **onSelect?**: `unknown`

Defined in: [flow-ui/src/components/Calendar.tsx:57](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L57)

Server action receiving the clicked `YYYY-MM-DD`. Only for a server-driven grid.

***

### events?

> `optional` **events?**: [`CalendarEvent`](CalendarEvent)[]

Defined in: [flow-ui/src/components/Calendar.tsx:59](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L59)

Records to lay out across the month.

***

### min?

> `optional` **min?**: `string`

Defined in: [flow-ui/src/components/Calendar.tsx:61](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L61)

Days before this are not selectable. `YYYY-MM-DD`.

***

### max?

> `optional` **max?**: `string`

Defined in: [flow-ui/src/components/Calendar.tsx:62](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L62)

***

### sundayFirst?

> `optional` **sundayFirst?**: `boolean`

Defined in: [flow-ui/src/components/Calendar.tsx:64](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L64)

Start weeks on Sunday instead of Monday.

***

### monthHref?

> `optional` **monthHref?**: (`month`) => `string`

Defined in: [flow-ui/src/components/Calendar.tsx:66](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L66)

Build the href for the previous/next month links. Omit for a static grid.

#### Parameters

##### month

`string`

#### Returns

`string`

***

### class?

> `optional` **class?**: `string`

Defined in: [flow-ui/src/components/Calendar.tsx:67](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow-ui/src/components/Calendar.tsx#L67)
