Skip to content

Commit

Permalink
restrict deferring icons to the component (#239)
Browse files Browse the repository at this point in the history
small hint, that his feature doesn't work with the blade directive or the helper function
  • Loading branch information
buddhaCode authored Jun 18, 2024
1 parent 4af08a8 commit ffe161d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ This will push the icons to the stack "bladeicons", you should load this stack a
</html>
```

Deferring icons is only possible using the `<x-icon>` component. This [feature doesn't work](https://github.com/blade-ui-kit/blade-icons/issues/194#issuecomment-1175156423) with the `@svg` Blade directive or the `svg()` helper function.

##### Using deferred icons in JavaScript

You can re-use your icons from blade in your JavaScript rendered views by providing a custom defer value that will be used as an identifier:
Expand Down

0 comments on commit ffe161d

Please sign in to comment.