# n-calendar

> calendar component

Latest version **0.0.3** (published 2019-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install n-calendar
pnpm add n-calendar
yarn add n-calendar
bun add n-calendar
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-11-10 |
| First published | 2019-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jay |
| Maintainers | scorpionjay |

## Links

- npm: https://www.npmjs.com/package/n-calendar
- Repository: https://github.com/w2one/n-calendar
- Homepage: https://github.com/w2one/n-calendar#readme
- Issues: https://github.com/w2one/n-calendar/issues
- npm.io page: https://npm.io/package/n-calendar

## Recent versions

- 0.0.3 (latest) — 2019-11-10
- 0.0.2 — 2019-11-10
- 0.0.1 — 2019-11-08

## README

# n-calendar

## install

```
npm install n-calendar -S
yarn add n-calendar
```

## how to use

```
import React, { Component } from "react";
import { Calendar } from "n-calendar";
import "n-calendar/lib/index.css";

function Item(props) {
  return (
    <div
      style={
        props.data[props.dayItem.date]
          ? {
              color: "red"
            }
          : null
      }
    >
      {props.dayItem.day}
    </div>
  );
}

export class Demo extends Component {
  render() {
    const data = {
      "2019-11-1": { name: "jay" },
      "2019-11-2": { name: "jay" }
    };
    return (
      <div>
        <Calendar
            data={data}
            firstWeek={1}
            component={Item}
        />
      </div>
    );
  }
}

export default Demo;
```

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