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

@lmc-eu/spirit-web-react

Package Overview
Dependencies
Maintainers
1
Versions
107
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
Version published
Weekly downloads
670
-27.41%
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