An open API service indexing awesome lists of open source software.

https://github.com/yevhenns/bme-calendar

NPM package
https://github.com/yevhenns/bme-calendar

react-typescript

Last synced: about 2 months ago
JSON representation

NPM package

Awesome Lists containing this project

README

        

## Calendar

Developed for [Book My Event](https://evently-book.vercel.app/).

[Examples](https://bme-calendar-examples.vercel.app/)

## Instalation

```bash
npm i bme-calendar
```

## Usage

Import styles

```tsx
import "bme-calendar/style.css";
```

Date Picker 24x24px

```tsx
import { useState } from "react";
import { Calendar } from "bme-calendar";
import "bme-calendar/style.css";

function App() {
const [day, setDay] = useState();

return (
<>

Календар



Дата: {day}


>
);
}

export default App;
```


image

Date Range Picker 24x24px

```tsx
import { useState } from "react";
import { Calendar } from "bme-calendar";
import "bme-calendar/style.css";

function App() {
const [range, setRange] = useState();

return (
<>

Діапазон дат




Список дат:



    {range?.map((item) => {
    return
  • {item}
  • ;
    })}


>
);
}

export default App;
```


image

The current day is outlined.

The default type is Date Picker (type="calendar").

The default cell size is 24x24px (daySize="desktop").

To receive a 40x32px cell, add props to the Calendar (daySize="mobile"):

```tsx

```