This package has been deprecated

Author message:

integrated as React component in Code.gov front-end

@code.gov/json-schema-web-component

0.4.1 • Public • Published

json-schema-web-component

Web Component that Displays a JSON Schema

beta

⚠️ This is in beta. Please find bugs, submit issues, and provide example JSON Schemas, so we can improve it!

demo

https://gsa.github.io/json-schema-web-component/

usage

Copy the index.js file and put it in a script tag and then create an instance of the web component by <json-schema url='THE URL TO YOUR SCHEMA JSON' />.

<!DOCTYPE html>
<html style="background: darkblue;">
  <head>
    <title>JSON Schema Web Component Demo</title>
    <script src="./index.js"></script>
  </head>
  <body>
    <div>
      <json-schema url="./example-schema.json" />
    </div>
  </body>
</html>

screenshot

screenshot

contributing

Please see the file CONTRIBUTING.md

contact

code@gsa.gov

/@code.gov/json-schema-web-component/

    Package Sidebar

    Install

    npm i @code.gov/json-schema-web-component

    Weekly Downloads

    10

    Version

    0.4.1

    License

    CC0-1.0

    Unpacked Size

    237 kB

    Total Files

    13

    Last publish

    Collaborators

    • jrcastle
    • sarassassin
    • skstarne