A ViewComponent extension that adds a `prop` DSL with defaults, fallbacks, required props, casting, enum validation, custom validators, and a pluggable caster registry. Patches ViewComponent::Base via a Rails Railtie (or on require outside Rails) so components accept a props hash out of the box.

Required Ruby Version

>= 3.0

Required Rubygems Version

>= 2.0

Authors

Kinnell Shah

Versions

  1. 0.0.3 May 30, 2026 (11.5 KB)
  2. 0.0.2 May 29, 2026 (10.5 KB)
  3. 0.0.1 May 29, 2026 (10.5 KB)
  4. 0.0.0 May 20, 2026 (6 KB)

Pushed by

SHA 256 checksum