Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderJames committed Jun 28, 2024
1 parent 7087b1d commit b784269
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@

Generate Icon components from official ant-design-icons repo with Source Generators.

You can add all icons from https://ant.design/components/icon

## Usage

```razor
@AlertTwotone.RenderIcon(twoToneColor:["#52c41a", "#398439"])
- Install package
```bash
$ dotnet add package AntDesign
```

- Add `@using AntDesign.Icons` to your `_Imports.razor` file

- Use `@AlertTwotone.RenderIcon()` or `<AlertTwotone />` to render an icon.
```razor
@AlertTwotone.RenderIcon(twoToneColor:["#52c41a", "#398439"])

<TagTwotone TwoToneColor="@(["red","yellow"])" />
```
<TagTwotone TwoToneColor="@(["red","yellow"])" />
```

0 comments on commit b784269

Please sign in to comment.