basic-calendar-component
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Basic Calendar

  • Capture current dates
  • Block future and past dates from the default date
  • Display calendar in some predefined languages
  • Use refs to get input data
  • Place the icon you want if you don't want to use the default one

Usage/Examples

import { Calendar } from 'basic-calendar-component'

function App() {
  return (
      <Calendar
        onChange={(date, dateToLocaleString) => console.log(date, dateToLocaleString)}
        language='pt-BR'
        label='Initial Date'
        defaultDate="2024-02-10"
      />
  )
}

Running locally

Clone the project

  git clone https://link-para-o-projeto

Enter the project directory

  cd react-basic-calendar

Install dependencies

  yarn install

Enter the example directory

  cd example

Install dependencies

  yarn install

Start the project

  yarn start

Contribution

To learn how to contribute, contact me via email at caio.henriquealves@outlook.com or through the contact methods on my website https://caiohalves.vercel.app

/basic-calendar-component/

    Package Sidebar

    Install

    npm i basic-calendar-component

    Weekly Downloads

    5

    Version

    1.0.10

    License

    MIT

    Unpacked Size

    170 kB

    Total Files

    14

    Last publish

    Collaborators

    • caiohalves