We recommend you check out Esri's Calcite Design System, which provides a react output target for the web component library!
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.
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.
Below is a simple example of importing and using two Calcite React components.
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
.