JSPM

  • Created
  • Published
  • Downloads 32
  • Score
    100M100P100Q41895F
  • License Proprietary

Library of JS components from Capitol AI

Package Exports

  • @capitol.ai/summary
  • @capitol.ai/summary/dist/capitolai-ai-summary.es.js
  • @capitol.ai/summary/dist/capitolai-ai-summary.umd.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@capitol.ai/summary) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Capitol AI - Summary

Local setup

First, install the package:

npm install @capitol.ai/summary

Then, import components you need and default styles (optional):

import { Summary } from '@capitol.ai/summary';
import '@capitol.ai/summary/dist/summary.css';

Example usage:

import { Summary } from '@capitol.ai/summary';
import '@capitol.ai/summary/dist/summary.css';

const MyApp = () => {
  return (
    <>
      <Summary title='Custom Title' />
    </>
  );
}

Building new package

It's alwats a better idea to test before publish (e.g. using App.jsx).

Once you absolutely happy with what you've done:

npm run build
npm version patch
npm publish