Core concepts

Below are some of the core concepts that will help you understand how PhlexUI works under the hood.

Builder ComponentsWIP

Work in progress
Only recently added, Builder Components are still a work in progress. They are not yet available for all components.

Drawing from Rails' emphasis on development speed, we've created ::Builder components. These function similarly to Rails' helper methods, enabling quicker component implementation. They use the same underlying components but provide a more streamlined interface.

For example, the PhlexUI::Form::Builder component is a wrapper around the PhlexUI::Form, PhlexUI::Form::Input, PhlexUI::Form::Label components, and provides a more efficient interface for building forms.

Same form, different approaches

Without builder

With builder