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

@lmc-eu/spirit-web-react

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lmc-eu/spirit-web-react

React implementation of Spirit Design System components

  • 0.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
444
decreased by-19.27%
Maintainers
1
Weekly downloads
 
Created
Source

@lmc-eu/spirit-web-react

React implementation of Spirit Design System components.

Install

Expecting you have react and react-dom installed in your app, run:

yarn add @lmc-eu/spirit-web @lmc-eu/spirit-web-react

or

npm install --save @lmc-eu/spirit-web @lmc-eu/spirit-web-react

Usage

Link Spirit CSS (see spirit-react-web docs for more options):

<link rel="stylesheet" href="node_modules/@lmc-eu/spirit-web/css/components.min.css" />

Import React components in your app:

import { Button } from '@lmc-eu/spirit-web-react/components/Button';

Prefixing CSS classes in components

If you want to prefix the component classes with your own namespace, you can use the ClassNamePrefixProvider context to provide a prefix to all components in your app.

For prefixing classes, see PostCSS config.

import { ClassNamePrefixProvider } from '@lmc-eu/spirit-web-react/context/ClassNamePrefixContext';

<ClassNamePrefixProvider value="jobs">
  <Button>Button</Button>
</ClassNamePrefixProvider>;

Examples

👀 See [example] for a live demo.

License

See the LICENSE file for information.

FAQs

Package last updated on 20 Feb 2022

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