@kogk/common

A bunch of random useful UI-less components (for the most part)

Usage no npm install needed!

<script type="module">
  import kogkCommon from 'https://cdn.skypack.dev/@kogk/common';
</script>

README

@kogk/common-components

Modified from: Harvey Delaney ▸

Development

Testing

npm run test:watch

Building

npm run build

Handy

npm run generate YourComponentName

This will generate:

/src
  /YourComponentName
    YourComponentName.tsx
    YourComponentName.test.tsx
    YourComponentName.types.ts

The default templates for each file can be modified under util/templates.

Don't forget to add the component to your index.ts exports if you want the library to export the component!

Can I code split my components?

Yes you can.

Read this section of my blog post to find out how.

Or check out this commit to see what changes are neccesary to implement it.