Socket
Book a DemoInstallSign in
Socket

ods-component-library

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

ods-component-library

ODS UI React

unpublished
npmnpm
Version
0.5.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ODS Components React

Build Status

test stage production

Installation

The component library has to be consumed via the SIP feed (Connect to Azure Artifacts).

npm install @zeiss/ods-components-react
OR
yarn add @zeiss/ods-components-react

Development scripts

Running the application in development mode using storybook

yarn workspace @zeiss/ods-components-react start:dev

Running the linters

yarn workspace @zeiss/ods-components-react lint

Running the tests

yarn workspace @zeiss/ods-components-react test

Generate artifact build

yarn workspace @zeiss/ods-components-react build

Create storybook demo build

yarn workspace @zeiss/ods-components-react build:demo

Consuming the library

import { Button } from '@zeiss/ods-components-react';

export default function Example() {
  return <Button label="ODS Button" onClick={() => {}} />;
}

The library is styled with Tailwind. If your application is build with Tailwind, a Tailwind installation and integration of the ODS Foundations is required. Please refer to the ODS Foundations readme for further guidance regarding installation.

If the host application is not using Tailwind, it is sufficient to require the pre-compiled stylesheet. In your index.css file import:

@import '@zeiss/ods-components-react/dist/main.css';

Notes

  • There is an issue with applications created with CRA and the tailwind integration. The usage of the library is currently only possible via the pre-compiles stylesheet.

FAQs

Package last updated on 27 Sep 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