calcite-react
Calcite components for React
Last updated 14 days ago by _codylawson .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install calcite-react 
SYNC missed versions from official npm registry.

Documentation

You can find the full docs for Calcite React here: https://calcite-react.netlify.com

Calcite React

Calcite React is a component library built in React and used by Esri. It is an implementation of Calcite, the geo-centric design language of Esri, aimed at helping React developers to quickly build components that adhere to the Calcite design language.

Installation

npm i calcite-react

Usage

Theme Provider

Calcite React components rely on <CalciteThemeProvider /> to access our theme via React Context. All Calcite React components must be wrapped in this provider component in order to render properly. In most cases, it's recommended to wrap your entire app at the highest level.

import React from 'react';
import ReactDOM from 'react-dom';

import CalciteThemeProvider from 'calcite-react/CalciteThemeProvider';

import App from 'path/to/App';

ReactDOM.render(
  <CalciteThemeProvider>
    <App />
  </CalciteThemeProvider>,
  document.getElementById('root')
);

Components

Below is a simple example of importing and using two Calcite React components.

import React, { Component } from 'react';

import Button from 'calcite-react/Button';
import { CalciteH1 } from 'calcite-react/Elements';

class App extends Component {
  render() {
    return (
      <div>
        <CalciteH1>My App uses Calcite headers and buttons!</CalciteH1>
        <Button>A Calcite Button!</Button>
      </div>
    );
  }
}

export default App;

RTL

Right-to-left (RTL) is supported by Calcite React components with the dir="rtl" attribute. The attribute must be applied to the html element to be inherited properly by the library. This will mirror all components including changing the placement used by Tooltip, Popover, and Drawer.

<html dir="rtl" ...>

References

Licensing

Copyright 2019 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's LICENSE file.

Current Tags

  • 0.55.1                                ...           latest (14 days ago)

129 Versions

  • 0.55.1                                ...           14 days ago
  • 0.55.0                                ...           18 days ago
  • 0.54.0                                ...           2 months ago
  • 0.53.0                                ...           2 months ago
  • 0.52.1                                ...           2 months ago
  • 0.52.0                                ...           4 months ago
  • 0.51.1                                ...           5 months ago
  • 0.51.0                                ...           5 months ago
  • 0.50.1                                ...           5 months ago
  • 0.50.0                                ...           6 months ago
  • 0.49.0                                ...           6 months ago
  • 0.48.0                                ...           7 months ago
  • 0.47.5                                ...           7 months ago
  • 0.47.4                                ...           7 months ago
  • 0.47.3                                ...           7 months ago
  • 0.47.2                                ...           8 months ago
  • 0.47.1                                ...           8 months ago
  • 0.47.0                                ...           9 months ago
  • 0.46.0                                ...           9 months ago
  • 0.45.1                                ...           9 months ago
  • 0.45.0                                ...           9 months ago
  • 0.44.0                                ...           10 months ago
  • 0.43.2                                ...           10 months ago
  • 0.43.1                                ...           10 months ago
  • 0.43.0                                ...           10 months ago
  • 0.42.0                                ...           a year ago
  • 0.41.0                                ...           a year ago
  • 0.40.0                                ...           a year ago
  • 0.39.0                                ...           a year ago
  • 0.38.0                                ...           a year ago
  • 0.37.0                                ...           a year ago
  • 0.36.0                                ...           a year ago
  • 0.35.0                                ...           a year ago
  • 0.34.0                                ...           a year ago
  • 0.33.3                                ...           a year ago
  • 0.33.2                                ...           2 years ago
  • 0.33.1                                ...           2 years ago
  • 0.33.0                                ...           2 years ago
  • 0.32.0                                ...           2 years ago
  • 0.31.2                                ...           2 years ago
  • 0.31.1                                ...           2 years ago
  • 0.31.0                                ...           2 years ago
  • 0.30.6                                ...           2 years ago
  • 0.30.5                                ...           2 years ago
  • 0.30.4                                ...           2 years ago
  • 0.30.3                                ...           2 years ago
  • 0.30.2                                ...           2 years ago
  • 0.30.1                                ...           2 years ago
  • 0.30.0                                ...           2 years ago
  • 0.29.4                                ...           2 years ago
  • 0.29.3                                ...           2 years ago
  • 0.29.2                                ...           2 years ago
  • 0.29.1                                ...           2 years ago
  • 0.29.0                                ...           2 years ago
  • 0.28.1                                ...           2 years ago
  • 0.28.0                                ...           2 years ago
  • 0.27.1                                ...           2 years ago
  • 0.27.0                                ...           2 years ago
  • 0.26.4                                ...           2 years ago
  • 0.26.3                                ...           2 years ago
  • 0.26.2                                ...           2 years ago
  • 0.26.1                                ...           2 years ago
  • 0.25.0                                ...           2 years ago
  • 0.24.0                                ...           2 years ago
  • 0.23.1                                ...           2 years ago
  • 0.23.0                                ...           2 years ago
  • 0.22.0                                ...           2 years ago
  • 0.21.2                                ...           2 years ago
  • 0.21.1                                ...           2 years ago
  • 0.21.0                                ...           2 years ago
  • 0.20.2                                ...           2 years ago
  • 0.20.1                                ...           2 years ago
  • 0.20.0                                ...           2 years ago
  • 0.19.0                                ...           2 years ago
  • 0.18.0                                ...           2 years ago
  • 0.17.0                                ...           2 years ago
  • 0.16.0                                ...           2 years ago
  • 0.15.0                                ...           2 years ago
  • 0.14.2                                ...           2 years ago
  • 0.14.1                                ...           2 years ago
  • 0.14.0                                ...           2 years ago
  • 0.13.0                                ...           2 years ago
  • 0.12.0                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.10.3                                ...           2 years ago
  • 0.10.2                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.4                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.26                                ...           2 years ago
  • 0.1.25                                ...           2 years ago
  • 0.1.24                                ...           2 years ago
  • 0.1.23                                ...           2 years ago
  • 0.1.22                                ...           2 years ago
  • 0.1.21                                ...           2 years ago
  • 0.1.20                                ...           2 years ago
  • 0.1.19                                ...           2 years ago
  • 0.1.18                                ...           2 years ago
  • 0.1.17                                ...           3 years ago
  • 0.1.16                                ...           3 years ago
  • 0.1.15                                ...           3 years ago
  • 0.1.14                                ...           3 years ago
  • 0.1.13                                ...           3 years ago
  • 0.1.12                                ...           3 years ago
  • 0.1.11                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.6                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 1
This Week 1
This Month 31
Last Day 0
Last Week 0
Last Month 51
Dependencies (20)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |