react-components
/
0.0.0-2-95c1224
react-components 0.0.0-2-95c1224
Install from the command line:
Learn more about npm packages
$ npm install @db-ui/react-components@0.0.0-2-95c1224
Install via package.json:
"@db-ui/react-components": "0.0.0-2-95c1224"
About this version
A React library containing all styles & components of DB UX System.
npm i @db-ui/react-components
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";
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";
import { DBButton } from '@db-ui/react-components';
...
<DBButton icon="account" onClick={()=>{console.log("Test")}}>Test</DBButton>
...
Details
- react-components
- db-ui
- almost 2 years ago
- Apache-2.0
- 6 dependencies
Assets
- react-components-0.0.0-2-95c1224.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0