# @laruz7476/react-butty-persian-calendar

> This package is published on npm and can be accessed and installed. [react-butty-persian-calendar](https://www.npmjs.com/package/@laruz7476/react-butty-persian-calendar).

Latest version **3.0.0** (published 2021-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @laruz7476/react-butty-persian-calendar
pnpm add @laruz7476/react-butty-persian-calendar
yarn add @laruz7476/react-butty-persian-calendar
bun add @laruz7476/react-butty-persian-calendar
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-11-10 |
| First published | 2021-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 8 |
| Unpacked size | 237.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | laruz |
| Maintainers | laruz7476 |

## Links

- npm: https://www.npmjs.com/package/@laruz7476/react-butty-persian-calendar
- npm.io page: https://npm.io/package/@laruz7476/react-butty-persian-calendar

## Dependencies (8)

- [swiper](https://npm.io/package/swiper.md) ^6.0.2
- [swipe-js-iso](https://npm.io/package/swipe-js-iso.md) ^2.1.5
- [@types/swiper](https://npm.io/package/@types/swiper.md) ^5.4.3
- [jalali-moment](https://npm.io/package/jalali-moment.md) ^3.3.10
- [react-id-swiper](https://npm.io/package/react-id-swiper.md) ^4.0.0
- [styled-components](https://npm.io/package/styled-components.md) ^5.3.1
- [@types/react-swipe](https://npm.io/package/@types/react-swipe.md) ^6.0.1
- [@types/styled-components](https://npm.io/package/@types/styled-components.md) ^5.1.14

## Recent versions

- 3.0.0 (latest) — 2021-11-10
- 2.13.0 — 2021-10-24
- 2.12.0 — 2021-10-24
- 2.11.0 — 2021-10-24
- 2.10.0 — 2021-10-24
- 2.9.0 — 2021-10-24
- 2.8.0 — 2021-10-24
- 2.6.0 — 2021-10-24
- 2.5.0 — 2021-10-24

## README

# Getting start with TSDX and Typescript

This package is published on npm and can be accessed and installed. [react-butty-persian-calendar](https://www.npmjs.com/package/@laruz7476/react-butty-persian-calendar).

## How do I used id ?

You must first install the package from the npm repository.

`npm i @laruz7476/react-butty-persian-calendar`

## Calendar base options

Option | Usage | Default Value | Required | Sample | args
--- | --- | --- | --- | --- | ---
onChange | get data from calendar | now date timestamp | true | `onChange={yourFunc(date){console.log(date)}` | null
defaultValue | set your default date | now date timestamp | false | `defaultValue={now Date()}` | string date or timestamp
icon | jsx calendar icon element | null | true | `icon={<AiFillCalendar />}` | jsx icon

## Calendar custom options

Option | Usage | Default Value
--- | --- | ---
iconSize | change calendar icon size | `{width:'20px',height:'20px'}`
sidebarBG | sidebar background color | `#f7f7f7`
sidebarColor | sidebar text color | `#212121`
containerBG | container background color | `#ffffff`
containerColor | container text color | `#212121`
selectMonthBG | background month selector | `#ffffff`
selectMonthColor | text color month selector | `#212121`
accessBtnType | change submit btn style | `success` `primary` `warning` `danger` `default`
cancelBtnType | change cancel btn style | `success` `primary` `warning` `danger` `default`
showType | input box show type | `pretty` `default`
activeColor | the color of the day selected | `#3f51b5`

## Example code

```js
...
import {ButtyCalendar} from "@laruz7476/react-butty-persian-calendar";

function App(){
  function onChangeCalendar(date){
    console.log(date)
  }
  return (
    <ButtyCalendar onChange={onChangeCalendar} icon={<AiFillCalendar />} />
  )
}

export default App;
```

## Result by default value

[react butty persian calendar example](https://codesandbox.io/s/react-butty-persian-calendar-l7mwu)

---
_Source: https://npm.io/package/@laruz7476/react-butty-persian-calendar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
