svelte-date-picker Svelte Themes

Svelte Date Picker

Svelte date picker

Usage

This library is using typescript.

Installation

npm i -D @kuanyu0729/svelte-date-picker

Usage

  • get selected date

    • case 1

      
      <script>
        import Calendar from "svelte-date-picker";
      </script>
      <Calendar on:SelectedDate={event => {
        console.log(event.detail);
      }}/>
      
    • case 2

      
        <script>
          import Calendar from "svelte-date-picker";
          let date = new Date();
          $: {
            console.log(date);
          }
        </script>
        <Calendar bind:date/>
      

Top categories

Loading Svelte Themes