Skip to content

react-components 0.0.3

Install from the command line:
Learn more about npm packages
$ npm install @db-ui/react-components@0.0.3
Install via package.json:
"@db-ui/react-components": "0.0.3"

About this version

@db-ui/react-components

A React library containing all styles & components of DB UX System.

Install

npm i @db-ui/react-components

Dependencies (simple)

Import the styles in scss or css. Based on your technology the file names could be different.

  • Default (db-ui-42): points to ../assets
  • Webpack (db-ui-42-webpack): points to ~@db-ui/foundations/assets
  • Rollup (db-ui-42-rollup): points to @db-ui/foundations/assets
SCSS
// index.scss
@use "@db-ui/components/src/styles/db-ui-42-rollup" as *;
CSS
// main.tsx
import "@db-ui/components/src/styles/db-ui-42-rollup.css";

Dependencies (advanced)

SCSS
@use "@db-ui/foundations/build/scss/rollup.assets-paths" as *;
@use "@db-ui/foundations/build/scss/icon/icons" as *;
@use "@db-ui/react-components/dist/db-ui-components" as *;
CSS
// main.tsx
import "@db-ui/foundations/build/scss/icon/icons.css";
import "@db-ui/react-components/dist/db-ui-components.css";

Usage

import { DBButton } from '@db-ui/react-components';
...
<DBButton icon="account" onClick={()=>{console.log("Test")}}>Test</DBButton>
...

Details


Assets

  • react-components-0.0.3.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0