8.10.0 • Published 1 year ago

@robocorp/ds v8.10.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
1 year ago

Robocorp Design System

React based UI components for faster and easier web development.

Installation

Add @robocorp/ds to your project dependencies. Be sure to install a specific version:

# with npm
npm install @robocorp/ds@0.x.x

# with yarn
yarn add @robocorp/ds@0.x.x

Usage

You can find the individual component documentation and implementation examples at https://design-system.robocorp.com

Wrap your project or UI view with the ThemeProvider component and import and consume individual UI components:

import { createRoot } from 'react-dom/client';
import { ThemeProvider, Button } from '@robocorp/ds';

function App() {
  return (
    <ThemeProvider theme="dark">
      <Button variant="primary">Hello World</Button>
    </ThemeProvider>
  );
}

const container = document.getElementById('app');
const root = createRoot(container);
root.render(<App />);

Using DateRangePicker

Usage of the DateRangePicker will require addition of date-fns dependency to your app as it's configured as a optional peer dependency of this library.

npm i date-fns

Font file assets

Embed the required font family files via Robocorp CDN server:

<link rel="preconnect" href="https://cdn.robocorp.com" crossorigin />
<link href="https://cdn.robocorp.com/fonts/robocorp-ds-fonts-v3.css" rel="stylesheet" />
<link
  rel="preload"
  as="font"
  href="https://cdn.robocorp.com/fonts/Inter-Regular.woff2"
  type="font/woff2"
  crossorigin="anonymous"
/>
<link
  rel="preload"
  as="font"
  href="https://cdn.robocorp.com/fonts/BarlowSemiCondensed-Bold.woff2"
  type="font/woff2"
  crossorigin="anonymous"
/>

To use local font files, copy public/fonts to your project's asset folder and import the following:

<link rel="stylesheet" href="/fonts/fonts.css" />

Development

Read Development guide on setting up the development environment.

8.10.0

1 year ago

8.9.0

1 year ago

8.8.0

1 year ago

8.4.1

2 years ago

8.6.0

2 years ago

8.7.2

1 year ago

8.7.1

1 year ago

8.5.0

2 years ago

8.7.0

2 years ago

8.4.0

2 years ago

8.3.0

2 years ago

8.2.2

2 years ago

8.1.0

2 years ago

8.0.1

2 years ago

8.0.0

2 years ago

8.2.1

2 years ago

8.2.0

2 years ago

7.2.0

2 years ago

7.1.0

2 years ago

7.0.0

2 years ago

6.8.1

2 years ago

6.8.0

2 years ago

6.7.1

2 years ago

6.8.2

2 years ago

6.4.0

2 years ago

6.3.1

3 years ago

6.7.0

2 years ago

6.6.0

2 years ago

4.7.0

2 years ago

6.3.0

3 years ago

6.1.0

3 years ago

6.2.0

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.11.0

3 years ago

5.10.0

3 years ago

5.9.0

3 years ago

5.8.1

3 years ago

5.8.0

3 years ago

5.7.1

3 years ago

5.7.0

3 years ago

5.6.0

3 years ago

5.5.1

3 years ago

5.5.0

3 years ago

5.4.0

3 years ago

5.3.0

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago