Components for Your Block
npm install @yourblock/yb-components```
npm install @yourblock/yb-components
1. Install packages with npm installnpm run storybook
2. Run storybook with and write stories for each component.
Hpppy Coding!
1. Run npm npm publish --access=public
2. Go through 2FA process.
3. Package should now be updated and found at https://www.npmjs.com/package/@yourblock/yb-components
There are two different type of web components that is being used.
Some browsers have both implemented while others don't.
Safari supports Autonomous Custom Element but not Customized Built-in.
According HTML Standard
there should be be something called attachedInternals()` included allowing us to extend native elements. This part
will only be included if there is support for Customized Built-in.
W3C Specs for this can be found in the following link