Skip to content

A minimal library of sleek React components for more complex UI elements like date and time pickers.

License

Notifications You must be signed in to change notification settings

thilan-tran/quicksilver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quicksilver

Quicksilver is a minimal library of material design inspired React components for common, medium-complexity UI elements such as date pickers, time pickers, dropdowns, and other inputs (with more componetns coming in the future!).

As of v1, the DatePicker, TimePicker, and DatetimePicker components are supported.

The library is very lightweight at under only 5kb zipped, with no external libraries.

Screens

Installation

$ yarn add @thilan-tran/qss # qss == quicksilver styles

Usage

import { DatePicker, TimePicker, DatetimePicker } from '@thilan-tran/qss';

import '@thilan-tran/qss/lib/main.css'; // import styles

As of v1, the following time and datepicker components are supported by the library:

  • TimePicker, DatePicker, and DatetimePicker.

Each support the following props:

  • value: Date object or ISO timestamp - Default value of the picker. If this value is changed, the picker will update accordingly as well.
  • onChange: (val) => {} - Function that is called whenever the date or time is changed. val is a JS Date object. For the DatetimePicker, all the fields are up to date, and seconds and milliseconds are zeroed out. For the DatePicker, hours, minutes, seconds, and milliseconds are zeroed out. For the TimePicker, the current date of the object is set to the current day.
  • disabled: boolean - Disable the picker.

About

A minimal library of sleek React components for more complex UI elements like date and time pickers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages