RubyGems Navigation menu

view_component-props 0.0.3

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.

Gemfile:
=

install:
=

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)

Runtime Dependencies (3):

activemodel >= 6.0, < 9.0
activesupport >= 6.0, < 9.0
view_component >= 3.0, < 5.0

Owners:

Pushed by:

Authors:

  • Kinnell Shah

SHA 256 checksum:

=

Total downloads 641

For this version 228

Version Released:

License:

MIT

Required Ruby Version: >= 3.0

New versions require MFA: true

Version published with MFA: true

Required Rubygems Version: >= 2.0

Links: