1.2.13 • Published 3 days ago

@dellstorage/clarity-react v1.2.13

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 days ago

Clarity React Binding

This project an unofficial implementation of VMware Clarity Design in React. It leverages CSS, icons and images from the Clarity project.

Usage in React projects

To use the project simply add the dependencies with yarn, npm, etc:

$ yarn add @dellstorage/clarity-react

Import styles and globals from peer dependencies:

index.tsx

import "@webcomponents/custom-elements/custom-elements.min.js";
import "@clr/icons/clr-icons.min.css";
import "@clr/icons/clr-icons-lite.min.js";
import "@clr/ui/clr-ui.min.css"
import "@clr/icons/shapes/technology-shapes.js";

...

And make use of the components in your app:

App.tsx

import React, {Component} from 'react';
import MainContainer from "@dell/clarity-react/layout/main-container/MainContainer";

const initialState = {
};

type MainPageProps = {
    token?: string
    level?: string
    message?: string
}

export type MainPageState = Readonly<typeof initialState>;

export default class MainPage extends Component<MainPageProps> {
    readonly state: MainPageState = initialState;

    render() {
        return(
            <MainContainer>
                Hello
            </MainContainer>
        );
    }
}

Storybook

This project includes Storybook as a component browser. To fire up storybook, download the project in Git:

$ git clone https://github.com/EMCECS/clarity-react.git

Install the dependencies with yarn, npm, etc.

$ cd clarity-react

# Using yarn
$ yarn

# Using NPM
$ npm install

Any run the "storybook" script:

# Using yarn
$ yarn run storybook

# Using NPM
$ npm run storybook

Licenses

  • Clarity React components is licensed under Apache 2.0 License.
  • The VMware Clarity Design System is licensed under the MIT license.
1.2.13

3 days ago

1.2.12

10 days ago

1.2.11

15 days ago

1.2.10

2 months ago

1.2.8

4 months ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.21

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.20

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.17

2 years ago

1.1.14

2 years ago

1.1.12

2 years ago

1.1.13

2 years ago

1.1.11

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

0.25.36

2 years ago

0.25.37

2 years ago

0.25.33

2 years ago

0.25.34

2 years ago

0.25.35

2 years ago

0.25.31

2 years ago

0.25.30

2 years ago

0.25.29

2 years ago

0.25.28

2 years ago

0.25.27

2 years ago

0.25.26

2 years ago

0.25.25

2 years ago

0.25.24

2 years ago

0.25.22

2 years ago

0.25.23

2 years ago

0.25.19

2 years ago

0.25.21

2 years ago

0.25.18

2 years ago

0.25.15

2 years ago

0.25.17

2 years ago

0.25.14

2 years ago

0.25.13

2 years ago

0.25.10

2 years ago

0.25.11

2 years ago

0.25.12

2 years ago

0.25.9

2 years ago

0.25.8

3 years ago