Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web-lite/scroll-picker

Package Overview
Dependencies
Maintainers
7
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web-lite/scroll-picker

The scroll picker package is a React picker component written in typescript. It's provide date/time picker components and also has a common component for other logics.

  • 0.0.0-alpha.3.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

Scroll Picker

The scroll picker package is a React picker component written in typescript. It's provide date/time picker components and also has a common component for other logics.

Installation

yarn

yarn add @web-lite/scroll-picker

npm

npm i @web-lite/scroll-picker

scroll picker exports two react component: TimePicker DatePicker and also a common component named Picker

DatePicker has year-month-day format for picking date and TimePicker has day-hour-minute format. if you prefer other format or another logic you can use Picker component and write your own logic for it.

Localization

It's fully support i18n using i18next package. Also supports Jalali Calendar with the help of PersianDate package. Other calendars and languages using DayJS package.

Usage

import { TimePicker } from '@web-lite/scroll-picker'

export function Picker() {
  return <TimePicker />
}

Props

PropDescriptionType
startStart date of picker rangeDate
endEnd date of picker rangeDate
selectedSelected date of picker rangeDate
onChangeHandle selected date change(selectedDate: Date) => unknown
localeString that localizationstring

FAQs

Package last updated on 06 Mar 2023

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc