@salesforce/design-system-react
Salesforce Lightning Design System for React
$ cnpm install @salesforce/design-system-react 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.8.21-beta.0                                ...           beta (2 years ago)
  • 0.10.21                                ...           latest (10 days ago)

58 Versions

  • 0.10.21                                ...           10 days ago
  • 0.10.20                                ...           21 days ago
  • 0.10.19                                ...           4 months ago
  • 0.10.18                                ...           6 months ago
  • 0.10.17                                ...           8 months ago
  • 0.10.16                                ...           8 months ago
  • 0.10.15                                ...           9 months ago
  • 0.10.14                                ...           9 months ago
  • 0.10.13                                ...           9 months ago
  • 0.10.12                                ...           10 months ago
  • 0.10.11                                ...           a year ago
  • 0.10.9                                ...           a year ago
  • 0.10.8                                ...           a year ago
  • 0.10.7                                ...           a year ago
  • 0.10.6                                ...           a year ago
  • 0.10.5                                ...           a year ago
  • 0.10.4                                ...           a year ago
  • 0.10.3                                ...           a year ago
  • 0.10.2                                ...           a year ago
  • 0.10.1                                ...           a year ago
  • 0.10.0                                ...           a year ago
  • 0.9.6                                ...           a year ago
  • 0.9.5                                ...           2 years ago
  • 0.9.4                                ...           2 years ago
  • 0.9.3                                ...           2 years ago
  • 0.9.2                                ...           2 years ago
  • 0.8.30                                ...           2 years ago
  • 0.9.1                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.29                                ...           2 years ago
  • 0.8.28                                ...           2 years ago
  • 0.8.27                                ...           2 years ago
  • 0.8.26 [deprecated]           ...           2 years ago
  • 0.8.25                                ...           2 years ago
  • 0.8.24                                ...           2 years ago
  • 0.8.23                                ...           2 years ago
  • 0.8.22                                ...           2 years ago
  • 0.8.21                                ...           2 years ago
  • 0.8.21-beta.0                                ...           2 years ago
  • 0.8.20                                ...           2 years ago
  • 0.8.19                                ...           2 years ago
  • 0.8.18                                ...           2 years ago
  • 0.8.17                                ...           2 years ago
  • 0.8.16                                ...           2 years ago
  • 0.8.15                                ...           2 years ago
  • 0.8.14                                ...           2 years ago
  • 0.8.13                                ...           2 years ago
  • 0.8.12                                ...           2 years ago
  • 0.8.11                                ...           2 years ago
  • 0.8.10                                ...           2 years ago
  • 0.8.9                                ...           2 years ago
  • 0.8.8                                ...           2 years ago
  • 0.8.7                                ...           3 years ago
  • 0.8.6                                ...           3 years ago
  • 0.8.5                                ...           3 years ago
  • 0.8.4                                ...           3 years ago
  • 0.8.3                                ...           3 years ago
  • 0.8.2                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |