This library provides the following list UI widgets in the form of custom elements:
- Sign up form
- Login form
- User list
- User add/edit form
To be used as a plug-and-play front end for apitoolbox
Download just the files you need, or apitoolbox-ui.js
for all elements, and save them on your webserver.
At the bottom of your page, just before the closing </body>
tag, include a script tag.
<script type="text/javascript" src="/js/apitoolbox-ui.js"></script>
Install via yarn or npm and include just the files you need or apitoolbox-ui
for all elements.
yarn install apitoolbox-ui
Just what you need:
require('apitoolbox-ui/sign-up-form');
Or everything:
require('apitoolbox-ui');
Include the element in your page where you want it displayed, passing in configuration values as attributes.
<sign-up-form
heading="Create new Account"
button-text="Sign Up"
server="https://REPLACE_ME.YOUR_DOMAIN.com">
</sign-up-form>
Bootstrap classes (but not style rules) are included on most elements to aid in styling. Minimal styling is included out of the box.
See more example usages in examples.html
- or -
Clone the repo and run yarn examples
yarn install
yarn dev
yarn build
This step requires the user to be logged in to NPM as Dylan since the package is published under Dylan's account. To login run npm login
. A 2FA code will be required to login.
- Update version in package.json
yarn build
cp package.json dist
cd dist
npm publish