0.10.58 • Published 8 months ago

@salesforce/design-system-react v0.10.58

Weekly downloads
7,775
License
BSD-3-Clause
Repository
github
Last release
8 months ago

Design System for React

Accessible, localization-friendly, presentational React components

Install

$ npm install @salesforce-ux/design-system @salesforce/design-system-react

Getting Started

Welcome to the project! :wave: This library is the React implementation of the Salesforce Lightning Design System. This library has a peer dependency on @salesforce-ux/design-system, react, and react-dom.

Quick Setup (CommonJS)

A CommonJS-compatible version has been included within the NPM package to allows usage without transpiling. Use the following named import syntax to access CommonJS components from /lib/index.js:

import { Button } from '@salesforce/design-system-react';

<Button label="Hello Button" />

Recommended Usage (ES6 modules)

Recommended usage requires that your babel presets are set up correctly. create-react-app and environments that do not transpile code within node_modules are not compatible with the component import below. All the examples on the documentation site use this syntax. You can use the Babel preset, @salesforce/babel-preset-design-system-react, to get started. This preset will keep Babel compatible with Design System React and allow ES6 module benefits such as tree-shaking.

import Button from '@salesforce/design-system-react/components/button';

<Button label="Hello Button" />

Transpile with .babelrc settings

{
  "presets": ["@salesforce/babel-preset-design-system-react"]
}

Licenses

Got feedback?

If you have support questions, please post a question to StackOverflow and tag with design-system-react. If you find any bugs, create a GitHub Issue.

0.10.58

8 months ago

0.10.55

10 months ago

0.10.56

8 months ago

0.10.57

8 months ago

0.10.53

1 year ago

0.10.54

1 year ago

0.10.52

1 year ago

0.10.50

1 year ago

0.10.50-alpha.2

1 year ago

0.10.50-alpha.1

1 year ago

0.10.47

2 years ago

0.10.48

2 years ago

0.10.46

2 years ago

0.10.42

2 years ago

0.10.43

2 years ago

0.10.44

2 years ago

0.10.45

2 years ago

0.10.40

2 years ago

0.10.41

2 years ago

0.10.39

2 years ago

0.10.38

3 years ago

0.10.37

3 years ago

0.10.36

3 years ago

0.10.35

3 years ago

0.10.34

3 years ago

0.10.33

3 years ago

0.10.32

3 years ago

0.10.31

3 years ago

0.10.30

3 years ago

0.10.29

3 years ago

0.10.28

3 years ago

0.10.27

3 years ago

0.10.26

3 years ago

0.10.25

3 years ago

0.10.25-rc1

3 years ago

0.10.24

3 years ago

0.10.23

3 years ago

0.10.22

4 years ago

0.10.21

4 years ago

0.10.20

4 years ago

0.10.19

4 years ago

0.10.18

4 years ago

0.10.17

4 years ago

0.10.16

4 years ago

0.10.15

4 years ago

0.10.14

4 years ago

0.10.13

4 years ago

0.10.12

5 years ago

0.10.11

5 years ago

0.10.9

5 years ago

0.10.8

5 years ago

0.10.7

5 years ago

0.10.6

5 years ago

0.10.5

5 years ago

0.10.4

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.9.6

5 years ago

0.9.5

5 years ago

0.9.4

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.8.30

5 years ago

0.9.1-docfix.0

5 years ago

0.9.1

5 years ago

0.9.0

6 years ago

0.8.29

6 years ago

0.8.28

6 years ago

0.8.27

6 years ago

0.8.26

6 years ago

0.8.25

6 years ago

0.8.24

6 years ago

0.8.23

6 years ago

0.8.22

6 years ago

0.8.21

6 years ago

0.8.21-beta.0

6 years ago

0.8.20

6 years ago

0.8.19

6 years ago

0.8.18

6 years ago

0.8.17

6 years ago

0.8.16

6 years ago

0.8.15

6 years ago

0.8.14

6 years ago

0.8.13

6 years ago

0.8.12

6 years ago

0.8.11

6 years ago

0.8.10

6 years ago

0.8.9

6 years ago

0.8.8

6 years ago

0.8.7

6 years ago

0.8.6

6 years ago

0.8.5

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago