Socket
Socket
Sign inDemoInstall

@sonarsource/echoes-react

Package Overview
Dependencies
Maintainers
17
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sonarsource/echoes-react

React implementation of Echoes, SONAR's Design System


Version published
Weekly downloads
525
decreased by-27.39%
Maintainers
17
Weekly downloads
 
Created
Source

echoes-react

A React implementation of Echoes, Sonar's Design System.

Installation

yarn add @sonarsource/echoes-react

Usage

Make sure to setup the IntlProvider from react-intl at the root of your app. See this page for more information.

Use components from the lib:

import { Checkbox } from '@sonarsource/echoes-react';

See available components and usage in storybook: https://echoes-react.netlify.app/

Make it work in Jest

The lib only provides es module bundle. If you use Jest for your tests (or a similar library) make sure your transform preprocessor goes through echoes-react to make it runnable on Node.js. You can do that by adding an exception in your transformIgnorePatterns, for example:

transformIgnorePatterns: [`/node_modules/(?!@sonarsource/echoes-react)`],

Local Development

VSCode Configuration

We recommend VSCode to work on this project. There is a .vscode folder containing:

  • A list of recommended extensions
    • Install them through the marketplace
  • A template for necessary (and recommended) settings: settings.template.json
    • Copy it and save it as settings.json
    • You must open the project directly. Adding its folder in an existing workspace might not work, as the typescript configuration must be defined at workspace level.

You should also set up your vscode to work with the yarn pnp setup, using the following command: yarn dlx @yarnpkg/sdks vscode

Run storybook

Use the following command to run both the build watcher and the storybook server in dev mode:

yarn dev

Tests

To run tests, run:

yarn test

Build

To build the lib, run:

yarn build

Deployment

Release process definition

FAQs

Package last updated on 09 Apr 2024

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