Phoenix + Live View HEEX Components
Petal is a framework that combines Phoenix, Elixir, Tailwind CSS, Alpine JS, and Live View (HEEX) to create a powerful and customizable component library. With Petal, you can easily build beautiful and interactive user interfaces for your web applications. It provides a range of components like dropdowns, forms, buttons, menus, alerts, tables, and more. Petal offers flexibility by allowing you to use either Alpine JS or LiveView.JS for component interaction, and you can customize the components by overriding the CSS classes.
To install Petal, follow these steps:
mix phx.new my_app
cd my_app
mix.exs file:defp deps do
[
{:petal, "~> 1.0"}
]
end
mix deps.get
mix deps.compile
That’s it! You now have Petal installed and ready to use in your Phoenix project.
Petal is a powerful framework that combines Phoenix, Elixir, Tailwind CSS, and Live View to provide a comprehensive component library for building beautiful and interactive user interfaces. It offers flexibility by supporting both Alpine JS and LiveView.JS for component interaction and allows for easy customization through CSS class overrides. With Petal, developers can quickly create sleek and responsive web applications while leveraging the power of Phoenix and Elixir.