Class: Shadcn::Field::Preview
- Inherits:
-
ApplicationViewComponentPreview
- Object
- ViewComponentContrib::Preview::Base
- ApplicationViewComponentPreview
- Shadcn::Field::Preview
- Defined in:
- app/components/shadcn/field/preview.rb
Instance Method Summary collapse
- #default ⇒ Object
-
#form_builder ⇒ Object
The same components driven by
shadcn_form_with, so ids, names, error text and the ARIA wiring come from the model.
Instance Method Details
#default ⇒ Object
6 7 8 |
# File 'app/components/shadcn/field/preview.rb', line 6 def default render_with_template end |
#form_builder ⇒ Object
The same components driven by shadcn_form_with, so ids, names, error
text and the ARIA wiring come from the model.
12 13 14 |
# File 'app/components/shadcn/field/preview.rb', line 12 def form_builder render_with_template end |