Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@quintype/em

Package Overview
Dependencies
Maintainers
27
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quintype/em

Component Library for Internal Quintype Applications

  • 0.3.18-test-page-refresh.0
  • test-page-refresh
  • npm
  • Socket score

Version published
Weekly downloads
234
increased by33.71%
Maintainers
27
Weekly downloads
 
Created
Source

em - emphasis

Em is a style system / UI library for React.

It is focused on developer experience, productivity for building internal Quintype applications. You can focus on what you want to build instead of on how to build it.

The design token are exported as a CSS variables so you will need to import them into your root component to use them

import '@quintype/em/global.css'

The library exports Components and Icons.

You can import the required components from /components or /icons as

import TextField  from '@quintype/em/components/text-field';
import  Close  from '@quintype/em/icons/close';

Development

To run the documentation locally, run npm run docs:dev. This will start a local server on https://localhost:5000.

Testing

We use Jest and Enzyme for testing, you can run tests with npm test. It runs jest in watchmode, so you can write test cases and see them pass or fail.

CSS

For CSS, we are using CSS Modules and along with classnames package. Make sure you use the design tokens(CSS Variables in global.css) as much as possible when building components.

Adding a new component

  • Create a new folder under src/components with the component name.
  • Create a file for component, a file for test and a file for css and a mdx file for documentation.
  • Make sure you annotate your Props interface with jsdoc explaing what the prop does, these annotations are used in documentation.
  • You might get an error on import of css in the component, saying Missing types for CSS declarations. Run npm run gen-css-declarations to generate a CSS declaration file for the newly added file.
  • Write unit tests.
  • Create a mdx file and use Playground and Props to show the different versions of the component and the properties of the component.

FAQs

Package last updated on 23 Mar 2023

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