Ship faster with goilerplate templUI Pro

Calendar

A date field component that allows users to enter and edit date.

Source Tailwind CSS JavaScript

Installation

  1. Install the component

    templui add calendar
  2. Add the JavaScript to your layout

    @calendar.Script()
    

    Call this template in your base layout file (e.g., in the <head> section).

API Reference

Required parameter
Hover for description

Calendar

Calendar component for date selection with internationalization support.

Name Type Default
ID
string
-
Class
string
-
LocaleTag
LocaleTag
en-US
Value
*time.Time
nil
Name
string
-
InitialMonth
int
-
InitialYear
int
-
StartOfWeek
*Day
nil