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

@sumup/circuit-ui

Package Overview
Dependencies
Maintainers
2
Versions
548
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sumup/circuit-ui

SumUp's React UI component library

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by1.27%
Maintainers
2
Weekly downloads
 
Created
Source

🚧 Under construction 🚧

The Circuit UI component API is not yet stable. There will be breaking changes without corresponding version number updates until we adopt a stable release cycle and versioning system.

Installation

yarn && yarn start

Deployment

yarn deploy

Linting and formatting

yarn fix:prettier
yarn fix:estlint
yarn fix:stylelint

yarn fix # Run all autofixing

Testing

yarn test:unit:watch
import React from 'react';
import Button from '.';

describe('Button', () => {
  it('should not render if there is no click handler, label, or children', () => {
    const button = create(<Button />);
    expect(button).toMatchSnapshot();
  });
  it('should take the body text as a child', () => {
    const output = mount(<Button onClick={() => {}}>Hello World</Button>);
    expect(output.text()).toContain('Hello World');
  });
});

Utils

Besides the component library, we also export some utilities which you might need in order to use the components. Two main ones:

  • numbers - a module for dealing with number localization.
  • currency - a module for formatting currency amounts.
  • style-helpers - a module containing helpers for writing styles.

Creating components

The project has a binary bin/create-component that you can execute from the project root, passing in the name of your new component.

./bin/create-component MyComponent

This will

  • copy the component template files from templates/component to src/components/MyComponent,
  • rename all files to MyComponent{.spec|.story}.js, and
  • replace all occurrences of Component inside MyComponent's files with MyComponent.

FAQs

Package last updated on 28 May 2018

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