Giter Site home page Giter Site logo

j-norwood-young / date-picker-svelte Goto Github PK

View Code? Open in Web Editor NEW

This project forked from probablykasper/date-picker-svelte

0.0 0.0 0.0 1.01 MB

Date and time picker for Svelte

Home Page: https://date-picker-svelte.kasper.space

License: MIT License

JavaScript 2.00% TypeScript 25.93% CSS 4.05% HTML 2.22% Svelte 65.80%

date-picker-svelte's Introduction

Date Picker Svelte

NPM License NPM Downloads test

Date and time picker for Svelte

Features:

  • Theming
  • Custom formats
  • Internationalization (i18n)
  • Autopunctuation (e.g typing "20201111111111" gives you "2020-11-11 11:11:11" with the default format)
  • Keyboard shortcuts

DemoDocumentationREPL

Install

npm install date-picker-svelte

Usage

<script>
  import { DateInput } from 'date-picker-svelte'
  let date = new Date()
</script>

<DateInput bind:value={date} />

Check the docs to learn more

Contributing

Get started

  1. Install Node.js (v14 works)
  2. Run npm install

Commands

  • npm run dev: Start site in dev mode
  • npm run build: Build package and site
  • npm run preview: Preview production site
  • npm run check: Run svelte-check
  • npm run test: Run tests
  • npm run format: Format code

Publish new version

  1. Update CHANGELOG.md
  2. Check for errors
    npm run lint
    
  3. Bump the version number
    npm version --no-git-tag <version>
    
  4. Publish
    npm publish
    
  5. Commit with a tag in format "v#.#.#"
  6. Create GitHub release with release notes

date-picker-svelte's People

Contributors

probablykasper avatar mkelandis avatar e0 avatar j-norwood-young avatar chromusx avatar jdtjenkins avatar vladimirlakodei avatar zheeeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.