packagefactory/atomicfusion-proptypes

Last activity 12 Jan 2023 12 2 171595
composer require packagefactory/atomicfusion-proptypes

Fusion port of react-propTypes for the fusion-prototypes PackageFactory.AtomicFusion:Component and Neos.Fusion:Component

v1.1.0

Version
v1.1.0
Type
neos-package
Release Date
Apr 27, 2018 09:25
Source
git
Distribution
zip
Requires
  • neos/fusion: ^3.0.0 || ^4.0.0 || dev-master
GPL-3.0-or-later ba5ddd8291fe47d7bda7340c71908db391583e7b

Readme excerpt

PackageFactory.AtomicFusion.PropTypes

Validate 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 content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 7 package(s).