What problem does it solve?
Provides concise API reference and guardrails to prevent common mistakes when building Rails views with the Bali ViewComponents library, reducing buggy UI code and inconsistent patterns across an application.
Core Features & Use Cases
- Detailed rules for correct component usage (Card, Modal, Tooltip, DataTable, IndexPage, ShowPage, FormPage, AppLayout, etc.).
- Explicit form guidance: require Bali::FormBuilder for all forms and avoid raw HTML fields; enforces slot and keyword-argument conventions for components.
- Practical examples and a component index that helps developers choose the right page components, wiring for pagination, and required JavaScript dependencies for interactive elements.
- Use cases: authoring index/show/form/dashboard pages, auditing views for Bali component adoption, and preventing regressions in UI consistency.
Quick Start
Create an IndexPage for Movies using Bali::IndexPage with a Bali::DataTable, add New/Edit actions, and ensure all forms use builder: Bali::FormBuilder.