Skip to content

Use backpex together with petal components #557

Closed Answered by Flo0807
phortx asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @phortx!

It seems that petal_components uses the heroicons hex package to integrate the icons. The package ships Phoenix Components to be used for icon integration. Backpex doesn't use this package, but tracks the "tailwindlabs/heroicons" GitHub repository with mix to load the icons into the deps. It then requires you to provide a Tailwind CSS plugin to display icons for elements that have the hero-* class.

The "Backpex way" is also the way Phoenix integrates heroicons into new applications (e.g. created with mix phx.new).

Because the way heroicons are integrated is different in Backpex and petal_components, you cannot use override: true.

One way to run Backpex together with petal_com…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by phortx
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@phortx
Comment options

@phortx
Comment options

@phortx
Comment options

@phortx
Comment options

@Flo0807
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants