Skip to content
V

View Component Form

Rails FormBuilder for ViewComponent

by pantographeFree

#2616in Productivity
0In stores

Description

ViewComponent::Form is a Ruby gem for Rails that builds form fields out of ViewComponent components. It uses the same interface as Rails' bu…

Highlights

  • Form builder that renders fields with ViewComponent
  • Same interface as Rails' FormBuilder
  • Customizable components with a lookup chain
  • Required and optional field helpers
  • Works with or without ActionText

Ratings & Reviews

No ratings yet

Be the first to rate View Component Form.

People also visit

S

Simple Form

Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup

Productivity
Launch
F

Former

A powerful form builder, for Laravel and other frameworks (stand-alone too)

Productivity
Launch
F

Form Builder

A dynamic form-building tool that allows users to create, customize, and…

Productivity
Launch
L

Laravel Form Builder

Laravel Form builder for version 5+!

Productivity
Launch
O

@openproject/primer-view-components

ViewComponents of the Primer Design System for OpenProject

UI Libraries
Launch
L

Laravel Form Builder

The laravel form builder code generator

Productivity
Launch

View Component Form FAQ

What is ViewComponent::Form?

It is a Ruby gem for Rails that renders form fields with ViewComponent components. It works with the same form helpers you already use, so you can customize how each field looks without rewriting your forms.

Which versions does it support?

The project is tested with Rails 7.2 and newer and Ruby 3.2 and newer. It works with or without ActionText.

How do I use it in a Rails app?

Add the gem to your project, then pass the form builder with a builder option on form_for, form_with or fields_for, or set it as a default in your controller with default_form_builder.

Is it stable?

The README says it is an early release and the API is subject to change until version 1.0.0, so pin your version and check the changelog before upgrading.

What are the best View Component Form alternatives?

Popular alternatives to View Component Form include Simple Form, Former and Form Builder. See all View Component Form alternatives

Developer Stuff

Badges