Consolidate redundant example from README.md

This commit is contained in:
James Baldwin
2022-09-27 23:01:10 -04:00
committed by GitHub
parent 0929dc23ef
commit 9c9f9829cc

View File

@ -35,17 +35,11 @@ By default, the icon components will use the outline style, but the `solid` or
<Heroicons.cake mini /> <Heroicons.cake mini />
``` ```
You can also pass arbitrary HTML attributes to the components: You can also pass arbitrary HTML attributes to the components, such as classes:
```eex ```eex
<Heroicons.cake class="w-2 h-2" /> <Heroicons.cake class="w-2 h-2" />
<Heroicons.cake solid class="w-2 h-2" /> <Heroicons.cake solid class="w-2 h-2 text-gray-500" />
```
You can also provide arbitrary HTML attributes to the svg tag, such as classes:
```eex
<Heroicons.cake class="w-6 h-6 text-gray-500" />
``` ```
For a full list of icons see [the docs](https://hexdocs.pm/heroicons/api-reference.html) or [heroicons.com](https://heroicons.com/). For a full list of icons see [the docs](https://hexdocs.pm/heroicons/api-reference.html) or [heroicons.com](https://heroicons.com/).