1.5.9 • Published 10 months ago

@subaranakhadka/nepali-datepicker v1.5.9

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Nepali Datepicker (Bikram Sambat) - React.js Component

Nepali static calendar (Bikram Sambat) as a ReactJS component

NPM

NepaliDatePicker Demo

Install

npm install --save nepali-datepicker-reactjs

or,

yarn add nepali-datepicker-reactjs

Usage

For Typescript

import React, { useState } from "react"
import { NepaliDatePicker } from "@subaranakhadka/nepali-datepicker"
import "@subaranakhadka/nepali-datepicker/dist/index.css"

const App = () => {
    const [date, setDate] = useState<string>("")

    return (
        <NepaliDatePicker
            value={date}
            onChange={(value: string) => setDate(value)}
            options={{ calenderLocale: "ne", valueLocale: "en" }}
        />
    )
}

export default App

For JavaScript

import React, { useState } from "react"
import { NepaliDatePicker } from "@subaranakhadka/nepali-datepicker"
import "@subaranakhadka/nepali-datepicker/dist/index.css"

const App = () => {
    const [date, setDate] = useState("")

    return (
        <NepaliDatePicker
            value={date}
            onChange={(value) => setDate(value)}
            options={{ calenderLocale: "ne", valueLocale: "en" }}
        />
    )
}

export default App

License

MIT © https://github.com/subarana-kush

1.5.9

10 months ago

1.5.8

10 months ago

1.5.7

10 months ago

1.4.8

10 months ago

1.4.7

10 months ago

1.3.7

10 months ago

1.2.7

10 months ago

1.1.7

10 months ago