This project an unofficial implementation of VMware Clarity Design in React. It leverages CSS, icons and images from the Clarity project.
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.tsximport "@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```typescript jsx 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;
export default class MainPage extends Component { readonly state: MainPageState = initialState;
render() {
return(
<MainContainer>
Hello
</MainContainer>
);
}
}
## Storybook
This project includes [Storybook](https://storybook.js.org/) as a component browser. To fire up storybook, download the project in Git:
```shell
$ 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
$ claude mcp add clarity-react \
-- python -m otcore.mcp_server <graph>