Module: PhlexForms::DelegatedField

Overview

Shared helpers for the model-bound leaf components that delegate their markup and variants to a daisyui gem component (DaisyUI::Input/Textarea/Select/...).

A host component sets @modifiers, @error, @disabled, @required, @full_width, and @attributes in its initializer, then calls #daisy_modifiers and #binding_attributes to assemble the delegated component's arguments.

Constant Summary collapse

IGNORED_MODIFIERS =

daisyui v4 :bordered is a no-op in v5 (base component class has the border); accept it silently so v4-era call sites don't break.

%i[bordered].freeze