Skip to content

SAP/fundamental-react

Folders and files

NameName
Last commit message
Last commit date
Mar 31, 2020
Mar 4, 2020
Mar 15, 2019
Dec 11, 2018
Oct 25, 2019
Jan 14, 2020
Feb 17, 2020
Mar 4, 2019
Mar 4, 2020
Apr 21, 2020
Apr 21, 2020
Jan 18, 2019
Jan 17, 2020
Jun 28, 2019
Mar 4, 2020
Feb 24, 2020
Apr 14, 2020
Jan 14, 2020
Feb 24, 2020
Apr 22, 2020
Sep 13, 2018
Feb 21, 2020
Mar 4, 2020
Dec 10, 2019
Apr 12, 2019
Apr 22, 2020
Apr 22, 2020

Repository files navigation

Fundamental React

npm version Minified Size Minzipped Size Build Status Coverage Status Slack

Description

The fundamental-react library is a set of React components built using SAP Fundamental Styles.

The SAP Fundamental Styles library is a design system and HTML/CSS component library used to build modern product user experiences with the SAP look and feel.

API Reference

See Component Documentation for examples and API details.

Requirements

You will need to install Node and Node Package Manager.

Getting Started

For an existing react application, follow the steps below:

  1. Install fundamental-react.

    npm install fundamental-react
    
  2. All components are currently packaged together with their respective css, you will need to edit your webpack configuration to handle these files. See css-loader.

  3. Import components as needed. See Component Documentation for examples and API details.

    import { MessageStrip } from 'fundamental-react/MessageStrip';

    or

    import { MessageStrip } from 'fundamental-react';

    NOTE: Importing from specific component is recommended. Doing so will bring in only the component you are using instead of the whole library, which will reduce your bundle size significantly.

  4. This project does not contain fonts and icons - they must be added to your project separately. Fonts and icons can be found at @sap-theming/theming-base-content. After importing fonts and icons from @sap-theming/theming-base-content, add the following to your css:

    @font-face {
        font-family: "72";
        src: url("path/to/fonts") format("woff"); // Bold, Light, Regular available in woff and woff2
        font-weight: normal;
        font-style: normal;
    };

    @font-face {
        font-family: "SAP-icons";
        src: url("path/to/icons") format("woff"); // available in woff, woff2 and ttf
        font-weight: normal;
        font-style: normal;
    }

Additionally, edit your webpack configuration to load font and icon fonts - see file-loader.

Versioning

The fundamental-react library follows Semantic Versioning. These components strictly adhere to the [MAJOR].[MINOR].[PATCH] numbering system (also known as [BREAKING].[FEATURE].[FIX]).

Merges to the master branch will be published as a prerelease. Prereleases will include an rc version (e.g. [MAJOR].[MINOR].[PATCH]-rc.[RC]).

Known Issues

Please see Issues.

Support

If you encounter an issue or want to request a feature, you can create an issue.

Contributing

If you want to contribute, please check the Contribution Guidelines. Also see our Developer Guide to Getting Started.

License

Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This library is licensed under the Apache Software License, v. 2 except as noted otherwise in the License File.

Similar Projects