A set of HEEX components for Phoenix developers to build beautiful web apps using Tailwind CSS, similar to Bootstrap or MUI.
Petal Components is a library of HEEX components for Phoenix developers, enabling the creation of visually appealing web applications with minimal effort. It provides a comprehensive suite of UI elements like buttons, forms, modals, and tables that work seamlessly in both live and dead (controller) views, streamlining the development process. Think of it as Bootstrap or MUI, but written in HEEX using Tailwind CSS classes.
Phoenix developers building web applications who want a pre-built, Tailwind CSS-based component library that integrates with HEEX and works in both LiveView and traditional controller views.
Developers choose Petal Components for its seamless integration with the Phoenix ecosystem, offering a comprehensive set of HEEX components that reduce boilerplate and accelerate UI development. Its flexibility in JavaScript options (Alpine JS or Phoenix.LiveView.JS) and easy customization via Tailwind CSS classes provide a unique advantage over generic UI libraries.
Phoenix + Live View HEEX Components
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Includes a wide range of UI elements like buttons, forms, modals, and tables, reducing boilerplate for Phoenix developers, as listed in the roadmap.
Built with Tailwind CSS classes, enabling easy styling and customization through standard utility classes, with documentation on overriding styles.
Supports both Alpine JS and Phoenix.LiveView.JS for interactive components, giving developers choice based on their project needs.
Works seamlessly in both LiveView and controller-based views, streamlining development across different parts of a Phoenix app.
Components like dropdowns require JavaScript, and Phoenix.LiveView.JS only works in live environments, forcing Alpine JS for dead views, adding complexity.
The roadmap shows missing features like input prefix and postfix, which may require custom work for advanced form implementations.
Tailwind defaults to scanning all component files, potentially including unused CSS classes, though optimization is possible but manual.
Petal Components is an open-source alternative to the following products:
MUI (Material-UI) is a popular React component library that implements Google's Material Design, providing pre-built UI components like buttons, dialogs, and grids for web applications.
A popular open-source front-end framework for developing responsive, mobile-first websites and web applications.