New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yot-web-components

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yot-web-components

I'm tired of rewriting buttons and fields all the time. This is a playground for trying common components and patterns.

  • 1.27.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
145
decreased by-9.94%
Maintainers
1
Weekly downloads
 
Created
Source

YOT Web Components

I'm tired of rewriting buttons and fields all the time. This is a playground for trying common components and patterns.

Tasks

Testing / Quality

cmddescription
yarn lintlints the src and storybook
yarn formatprettier the code
yarn testruns component tests
yarn storybookruns the storybook
yarn build-storybookbuilds the storybook site for deploying
yarn deploy-storybookpublishes the storybook site as a github page

Note on testing

The goal is to use the dom testing library due to its strong conventions which help to enforce accessible semantic design. Plus this is a standard in multiple front end libraries, so following the same syntax reduces mental overhead.

That being said, support for web components is early days and the package we're using, while a great start, has some limitations (some of this is likely jsdom issues). So far most issues have been pretty minor. Mostly the feedback from failing tests isn't as clear.

To demo

WIP, but for now yarn storybook. I'll get something deployed soon too.

Inspiration

  • Stumbled across Duetds in a search for different Heading patterns to toy with.

Palette

Background Colour Accent Text on Background Colour Text on Background Colour

Surface Colour Accent Text on Background Colour Text on Surface Colour

Accent Colour Second Accent Colour

Alert Colour Text On Alert Colour

Disabled Colour Text On Disabled Colour

FAQs

Package last updated on 16 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc