You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

sassy-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

sassy-datepicker

Beautiful, minimal, customizable and accessible date-picker for react.


Version published
Weekly downloads
676
decreased by-5.45%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

sassy-datepicker

npm version CI Status Maintenance Status Bundle Size: Minified + Gzipped GitHub Issues: Chat With Us PRs Welcome

Beautiful, minimal, customizable and accessible date-picker and time-picker for react.

Sassy DatePicker Snapshot

Why use sassy-datepicker?

  • Beautiful picker
  • Smooth and slick transitions
  • Simple and Easy to Use
  • Fully Customizable
  • First Class Accessibility
  • Small bundle size
  • Extremely Performant

Contents

Installation and Usage

Package Installation

yarn add sassy-datepicker
# or
npm install sassy-datepicker

Basic Usage

The default export from the library is the DatePicker component.

import { useState } from 'react';
import DatePicker, { TimePicker } from 'sassy-datepicker';
import 'sassy-datepicker/dist/styles.css';

function DateInput() {
  const [date, setDate] = useState(new Date());

  const onChange = newDate => {
    console.log(`New date selected - ${newDate.toString()}`);
    setDate(newDate);
  };

  return <DatePicker onChange={onChange} value={date} />;
}

function TimeInput() {
  const [time, setTime] = useState({ hours: 15, minutes: 30 });

  const onChange = newTime => {
    console.log(`New time selected - ${newTime}`);
    setTime(newTime);
  };

  return <TimePicker onChange={onChange} value={time} />;
}

Documentation

To view detailed documentation, go to https://sassy-datepicker.siddharthborderwala.com

Powered By

Keywords

FAQs

Package last updated on 11 Dec 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc