This package has been deprecated

Author message:

Please use '@ui5/webcomponents-react-base' instead.

@ui5-webcomponents-react/utils
TypeScript icon, indicating that this package has built-in type declarations

0.3.2-rc.0 • Public • Published

@ui5-webcomponents-react/utils

Helper Utils for ui5-webcomponents-react

Installation

yarn add @ui5-webcomponents-react/utils
OR
npm install @ui5-webcomponents-react/utils --save

Modules

StyleClassHelper

Concat multiple CSS Module into an instance of this class helper and place them into a react component.
Example:

import { StyleClassHelper } from '@ui5-webcomponents-react/utils';
import style from 'YOUR_STYLESHEET';

const classes = new StyleClassHelper.of(style.text);
classes.put(style.anotherClass);
classes.put(style.thirdClass)

const MyComponent = props => (
  <div className={classes}>
    My Component
  </div>
);

export default MyComponent;

Contribute

Please check our Contribution Guidelines.

License

Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the LICENSE file.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @ui5-webcomponents-react/utils

    Weekly Downloads

    0

    Version

    0.3.2-rc.0

    License

    Apache-2.0

    Unpacked Size

    199 kB

    Total Files

    30

    Last publish

    Collaborators

    • marcusnotheis