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

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


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

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

## Calendar

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

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

## Instalation

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

## Usage

Import styles

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

Calendar

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

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

return (
<>

Календар



Дата: {day}


>
);
}

export default App;
```

Range calendar

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

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

return (
<>

Діапазон дат




Список дат:



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


>
);
}

export default App;
```