Skip to content

Commit

Permalink
Add no need to require note in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Sep 3, 2024
1 parent c4b8d5d commit 8be332b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Phlex::Icons::Tabler.configuration.default_variant = :outline # or :filled
### With `Phlex::Kit`

```ruby
require 'phlex-icons'
require 'phlex-icons' # No need to require the gem if you are using it in a Rails application.

class PhlexIcons < Phlex::HTML
include Phlex::Icons
Expand All @@ -146,7 +146,7 @@ end
### Without `Phlex::Kit`

```ruby
require 'phlex-icons'
require 'phlex-icons' # No need to require the gem if you are using it in a Rails application.

class PhlexIcons < Phlex::HTML
def view_template
Expand All @@ -172,8 +172,8 @@ Let's say you want to use only Heroicons and Flag Icons, you can use the followi
Then, in your application, you can use the icons like this:

```ruby
require 'phlex-icons-flag'
require 'phlex-icons-hero'
require 'phlex-icons-flag' # No need to require the gem if you are using it in a Rails application.
require 'phlex-icons-hero' # No need to require the gem if you are using it in a Rails application.

class PhlexIcons < Phlex::HTML
include Phlex::Icons # If you want to use Phlex::Kit.
Expand Down

0 comments on commit 8be332b

Please sign in to comment.