UNPKG

@cocreate/conditional-logic

Version:

Simple JS component show & hide elements conditionally with inputs,checkbox,radio,btn etc.Great for creating tabs, accordions, dynamic forms, etc. Easy Configuration using HTML5 data attributes and/or JavaScript API.

86 lines (52 loc) 4.03 kB
# CoCreate-conditional-logic Simple JS component show & hide elements conditionally with inputs,checkbox,radio,btn etc.Great for creating tabs, accordions, dynamic forms, etc. Easy Configuration using HTML5 data attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/conditional-logic) ![minified](https://img.badgesize.io/https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.js?style=flat-square&label=minified&color=orange) ![gzip](https://img.badgesize.io/https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.js?compression=gzip&style=flat-square&label=gzip&color=yellow) ![brotli](https://img.badgesize.io/https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.js?compression=brotli&style=flat-square&label=brotli) ![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-conditional-logic?style=flat-square) ![License](https://img.shields.io/github/license/CoCreate-app/CoCreate-conditional-logic?style=flat-square) ![Hiring](https://img.shields.io/static/v1?style=flat-square&label=&message=Hiring&color=blueviolet) ![CoCreate-conditional-logic](https://cdn.cocreate.app/docs/CoCreate-conditional-logic.gif) ## [Docs & Demo](https://cocreate.app/docs/conditional-logic) For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/conditional-logic) ## CDN ```html <script src="https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.js"></script> ``` ```html <script src="https://cdn.cocreate.app/conditional-logic/latest/CoCreate-conditional-logic.min.css"></script> ``` ## NPM ```shell $ npm i @cocreate/conditional-logic ``` ## yarn ```shell $ yarn install @cocreate/conditional-logic ``` # Table of Contents - [Table of Contents](#table-of-contents) - [Announcements](#announcements) - [Roadmap](#roadmap) - [How to Contribute](#how-to-contribute) - [About](#about) - [License](#license) <a name="announcements"></a> # Announcements All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-conditional-logic/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-conditional-logic/releases). You may also subscribe to email for releases and breaking changes. <a name="roadmap"></a> # Roadmap If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-conditional-logic/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-conditional-logic/pulls). We would love to hear your feedback. <a name="about"></a> # About CoCreate-conditional-logic is guided and supported by the CoCreate Developer Experience Team. Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries. CoCreate-conditional-logic is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC. <a name="contribute"></a> # How to Contribute We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-conditional-logic/blob/master/CONTRIBUTING.md) guide for details. We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/CoCreate-conditional-logic/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-conditional-logic/pulls) or merely upvote or comment on existing issues or pull requests. We appreciate your continued support, thank you! <a name="license"></a> # License [The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-conditional-logic/blob/master/LICENSE)