@daimler/productkit-web v1.0.2
Product Kit for Web provides components for Daimler TSS web frontends based on Material Web Components.
Feel free to open an issue or provide a pull request with the desired modifications.
Examples
Installation
Note that you must have node (and npm) installed.
Install the npm package from the root directory through:
npm install @daimler/productkit-web
Import styles.scss
inside your App.scss or similar root styling scss file:
@import "@daimler/productkit-web/src/theme/scss/styles";
Your Material components should now be styled accordingly to the styleguide of Daimler TSS!
Usage
Add a component like for instance a button as stated in the Material documentation/examples:
<button class="mdc-button">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__label">Text Button</span>
</button>
You don't need to import any styling as Product Kit does all the styling for you!
Add ripple effect or other modifications in your App.js:
import {MDCRipple} from '@material/ripple';
const buttonRipple = new MDCRipple(document.querySelector('.mdc-button'));
Please look up other components in the Material documentation.
If you need help or something isn't working as expected feel free to open an issue.
Contributing
We welcome any contributions. If you want to contribute to this project, please read the contributing guide.
Code of Conduct
Please read our Code of Conduct as it is our base for interaction.
License
This project is licensed under the MIT LICENSE.
Provider Information
Please visit https://www.daimler-tss.com/en/imprint/ for information on the provider.
Notice: Before you use the program in productive use, please take all necessary precautions, e.g. testing and verifying the program with regard to your specific use. The program was tested solely for our own use cases, which might differ from yours.
2 years ago