0.8.0 • Published 20 days ago

@amsterdam/design-system-react v0.8.0

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
20 days ago

Component library for React apps

The @amsterdam/design-system-react package contains React implementations of various components. You can use this package in React apps.

The design tokens and css used in these components are published in separate npm packages, so don’t forget to install and include @amsterdam/design-system-tokens and @amsterdam/design-system-css too.

Stability of the components

The React components are released as alpha version, which means the components are still work in progress and it is likely that some APIs will change between releases.

Make sure you specify the exact version as dependency, so you can schedule to upgrade to the latest version when you have time to test for regression bugs.

Getting started

Install the packages you need, for instance:

npm install @amsterdam/design-system-react @amsterdam/design-system-tokens @amsterdam/design-system-assets @amsterdam/design-system-css

Import the packages you need.

import { Paragraph } from "@amsterdam/design-system-react";

import "@amsterdam/design-system-tokens/dist/index.css";
import "@amsterdam/design-system-assets/font/index.css";
import "@amsterdam/design-system-css/dist/index.css";

function App() {
  return <Paragraph>Hello world</Paragraph>;
}

export default App;

Compact mode

For applications, the large text and ample white space of the theme can be counterproductive. That’s why there is a compact mode. To use the compact mode, import the compact css after theme css, like so:

import "@amsterdam/design-system-tokens/dist/index.css";
import "@amsterdam/design-system-tokens/dist/compact.css";
0.8.0

20 days ago

0.7.1

2 months ago

0.7.0

2 months ago

0.6.1

2 months ago

0.6.0

2 months ago

0.5.0

3 months ago

0.4.0

3 months ago

0.3.0

5 months ago

0.2.0

5 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

7 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.6

7 months ago

0.1.5

8 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago