Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@doubletrade/lit-datepicker

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doubletrade/lit-datepicker

lit-datepicker provides a simple datepicker with range.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
3
Created
Source

Published on webcomponents.org

<range-datepicker>

lit-datepicker in action

lit-datepicker provides a simple datepicker with range.

Install

npm install @doubletrade/lit-datepicker

Inspired by airbnb datepicker.

  // Simple
  return html`<lit-datepicker date-from="${dateFrom}" date-to="${dateTo}"></lit-datepicker>`;

  // No range
  return html`<lit-datepicker no-range></lit-datepicker>`;

  // No range and narrow view
  return html`<lit-datepicker no-range force-narrow></lit-datepicker>`;

  // i18n
  return html`<lit-datepicker locale="fr"></lit-datepicker>`;

  // Inputs
  const input = (dateFrom, dateTo) => html`
    <paper-input value="${dateFrom} - ${dateTo}" readonly label="Input">
      <paper-icon-button slot="suffix" icon="today"></paper-icon-button>
    </paper-input>`;
  return html`<lit-datepicker-input .html="${input}" dateFormat="dd/MM/yyyy" locale="en"></lit-datepicker-input>`;

Keywords

web-component

FAQs

Package last updated on 12 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts