Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriyDurov authored Mar 8, 2024
1 parent bfbece8 commit b59694a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,48 @@

**BitzArt.Blazor.Cookies** is a nuget package that simplifies working with browser cookies in Blazor applications.

- Built for dotnet 8+
- Supports all Blazor United render modes
- Supports Blazor prerendering

| Blazor Rendermode | Support |
|-------------------------|:-------:|
| Static SSR | ✔️ |
| Interactive Server | ✔️ |
| Interactive WebAssembly | ✔️ |
| Interactive Auto | ✔️ |

### Installation

- Install the following package in your Blazor Server project:

```
dotnet add package BitzArt.Blazor.Cookies.Server
```

- Add this line to your Server project `program.cs`:

```csharp
builder.AddBlazorCookies();
```

- Install the following package in your Blazor Client project:

```
dotnet add package BitzArt.Blazor.Cookies.Client
```

- Add this line to your Client project `program.cs`:

```csharp
builder.AddBlazorCookies();
```

### Usage

- Inject `ICookieService` in any of your Services / Blazor Components
- Use `ICookieService` to interact with user's cookies.

## License

[![License](https://img.shields.io/badge/mit-%230072C6?style=for-the-badge)](https://github.com/BitzArt/Blazor.Cookies/blob/main/LICENSE)

0 comments on commit b59694a

Please sign in to comment.