packagefactory/atomicfusion-proptypes
composer require packagefactory/atomicfusion-proptypes
Fusion port of react-propTypes for the fusion-prototypes PackageFactory.AtomicFusion:Component and Neos.Fusion:Component
Readme excerpt
PackageFactory.AtomicFusion.PropTypesValidate the props passed to a component via @propType annotation. The syntax for the propType annotation is derived from react-propTypes.
ATTENTION: This package is by default only active in development-context.
prototype(Vendor.Site:Example) < prototype(Neos.Fusion:Component) { @propTypes { # optional, enforce that only validated props exist @strict = true # validation rules for props title = ${PropTypes.string.isRequired} subtitle = ${PropTypes.string} } }This will validate the given props with the validator that created in the @propTypes section via.
Methods…Read more
The same vendor provides 7 package(s).