@formio/premium
v3.1.1
Published
Premium components for form.io
Readme
Premium components
This module contains premium components for form.io.
Usage
import premium from '@formio/premium';
import { Formio } from '@formio/js';
// You need to have a valid Library License key to use this package.
// If you don't have one yet, please contact [email protected].
Formio.license = 'yourLibraryLicenseKey';
Formio.use(premium);If you want to use a <script> tag directly in your HTML file instead*:
<script src="node_modules/@formio/premium/premium.full.min.js"></script>*This also exposes the variable premium, allowing you to load the module with Formio.use(premium);
You also need to include styles from the '/node_modules/@formio/premium/premium.css' into your project to make all the components work correctly.
Using HTML
<link rel="stylesheet" type="text/css" href="node_modules/@formio/premium/premium.css">Using SCSS
@import '~@formio/premium/premium.css';Troubleshooting
In case you're using webpack to bundle your application and meet the error "Can't resolve 'Formio' in 'node_modules/@formio/premium'" at build time, please add the following to your webpack configuration:
resolve: {
alias: {
Formio: require('node:path').resolve(__dirname, 'RELATIVE_PATH_TO_YOUR_APP_NODE_MODULES_DIR/formiojs/index.js'),
},
}