Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Phlex::Kit for icon packs #8

Closed
AliOsm opened this issue Sep 1, 2024 · 0 comments · Fixed by #9
Closed

Use Phlex::Kit for icon packs #8

AliOsm opened this issue Sep 1, 2024 · 0 comments · Fixed by #9
Assignees

Comments

@AliOsm
Copy link
Owner

AliOsm commented Sep 1, 2024

From Joel's comments:

It would be awesome if each icon pack was a Phlex::Kit. It would allow you to use it like this

class PhlexIcons < Phlex::HTML
  include Phlex::Icons

  def view_template
    div do
      Hero::Home(variant: :solid, classes: 'size-4')
      Lucide::House(classes: 'size-4')
      Bootstrap::House(classes: 'size-4')
      Flag::Sa(variant: :rectangle, classes: 'size-4')
    end
  end
end
@AliOsm AliOsm self-assigned this Sep 1, 2024
@AliOsm AliOsm closed this as completed in #9 Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant