date-picker-cliffbyte
v1.0.0
Published
Nepali Datepicker (Bikram Sambat) as a ReactJS component
Downloads
6
Maintainers
Readme
Nepali Datepicker (Bikram Sambat) - React.js Component
Install
npm install --save datepicker-cliffbyte
or,
yarn add datepicker-cliffbyte
Usage
import React, { useState } from "react"
import { NepaliDatePicker } from "datepicker-cliffbyte"
import "datepicker-cliffbyte/dist/index.css"
const App = () => {
const [date, setDate] = useState<string>("")
return (
<form>
<label htmlFor='date'>Date</label>
<NepaliDatePicker
inputClassName='form-control'
className=''
value={date}
onChange={(value: string) => setDate(value)}
options={{ calenderLocale: "ne", valueLocale: "en" }}
/>
</form>
)
}
export default App