$ npm install @adobe/react-spectrum
A React implementation of Spectrum, Adobe’s design system.
The easiest way to start building a React Spectrum application is by following our getting started guide. It walks through all of the steps needed to install the components from npm, set up build tooling, and create your first application.
Here is a very basic example of using React Spectrum.
import {Provider, defaultTheme, Button} from '@adobe/react-spectrum';
// Render it in your app!
function App() {
return (
<Provider theme={theme}>
<Button
variant="cta"
onPress={() => alert('Hey there!')}>
Hello React Spectrum!
</Button>
</Provider>
);
}
React Spectrum is part of a family of libraries that help you build adaptive, accessible, and robust user experiences. Learn more about React Aria and React Stately if you'd like to build your own component library from scratch on our website.
© 2010 - cnpmjs.org x YWFE | Home | YWFE