# Calendar picker

The calendar picker is a user interface component that lets users select a specific date, which is then submitted to your backend in [ISO format](https://en.wikipedia.org/wiki/ISO_8601).

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FiWAOfMvBjhQNq2G4jgik%2FScreen-Recording-2024-05-14-at-15.16.49.gif?alt=media&#x26;token=84c7a99b-dcea-46d6-b302-76a1ff64ac63" alt=""><figcaption></figcaption></figure>

## 👉 **The Tags**

**📍 Where to add the tag?** A rectangle laye&#x72;**.**

To incorporate a calendar into your app, choose the appropriate tag based on your needs:

**Select one day**

For allowing users to select a single date, use the `single` tag:

```
[component:input-calendar:single]
```

**Select multiple non-consecutive dates**

To enable selection of **multiple non-consecutive dates**, utilise the `multiple` tag:

```
[component:input-calendar:multiple]
```

**Range**

To select a range of dates including start and end dates, use the following syntax:

```
[component:input-calendar:range]
```

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2Fl9sg2XyBhnfBljq9hx8o%2FCalendar%20Picker%20(1).jpg?alt=media&#x26;token=d157b7ab-ad87-4289-8293-ae8009fe9214" alt=""><figcaption></figcaption></figure>

## ️:paintbrush: Calendar styling

**Add a specific text color**

```
[style:color:<color>]
```

**Add a color to the active text**

```
[style:active-text-color:<color>]
```

**Add a color to the selected date**

```
[style:active-color:<color>]
```

**Add a background color**

```
[style:bg-color:<color>]
```

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FLQJsDokBizlflSm1K0ZN%2FCalendar%20Picker.jpg?alt=media&#x26;token=2f387f86-2402-4b1d-89a7-afbb997897a9" alt=""><figcaption></figcaption></figure>

## 🏷️ **How to add the tag**

1. Choose the type of calendar you'd like to use.
2. Paste the tag into the layer name of a rectangle shape.
3. Add a styling tag of your preference.
4. Ensure you include the `[action:submit]` tag, which triggers the action to transmit the data to your backend.
5. [Preview your app on **Bravo Vision**](https://docs.bravostudio.app/get-started/bravo-vision-previewer#how-to-use-bravo-vision)**.** 🚀

## 💾 Example files

Duplicate the files below to see how to set it up!

{% embed url="<https://www.figma.com/community/file/1372181468157618589>" %}

Your feedback is valuable to us. If you have any suggestions or questions, please don't hesitate to reach out to us in the [community](https://community.bravostudio.app/home).
