Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
ods-components-react-example
Advanced tools
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
yarn workspace @zeiss/ods-components-react start:dev
yarn workspace @zeiss/ods-components-react lint
yarn workspace @zeiss/ods-components-react test
yarn workspace @zeiss/ods-components-react build
yarn workspace @zeiss/ods-components-react build:demo
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';
The icons for ODS are defined in Figma.
By default, we support the following pre-defined sizes: 12px, 16px, 24px, 48px and 72px
.
Note that each icon is not provided in all sizes. This is due to the stroke size of 1px being used in certain cases which does not scale based on design feedback.
To sync the icons from Figma, the following steps need to be performed:
Export the entire sheet as shown in the image below:
Replace existing icons in the packages/ods-icons/icons
with the new exported icons.
Update the icons types by running the following command:
yarn workspace @zeiss/ods-components-react gen:icon-types
This will automatically generate the new type definitions required in the src/components/Icons/icon-types.ts
file.
We generate the corresponding React files based on the svg files from ods-icons
. To update the generated code, run
yarn workspace @zeiss/ods-components-react gen:icons
This will automatically update the icons files inside the src/components/Icons/icons/**
folder.
Commit your changes and push. The icons story is designed to automatically scan the icons folder to render the list of all icons based on their size in the storybook demo.
CRA
and the tailwind integration. The usage of the library is
currently only possible via the pre-compiles stylesheet.FAQs
ODS UI React
The npm package ods-components-react-example receives a total of 0 weekly downloads. As such, ods-components-react-example popularity was classified as not popular.
We found that ods-components-react-example demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.