Modern, flat React UI component library
React Elemental is a modern, flat UI library built specifically for React. It is designed to maximize development velocity by eliminating the need to import CSS or modify any Webpack configurations. React Elemental provides first-class support for ES6/JSX and seamlessly integrates with server-side rendering.
To install React Elemental, follow these steps:
Make sure you have React already installed in your project.
Run the following command to install React Elemental:
npm install react-elemental
import { Button, Input } from 'react-elemental';
// Example usage
const MyComponent = () => (
<div>
<Button text="Click me!" />
<Input placeholder="Enter your name" />
</div>
);
a. Declaratively using the Elemental component:
import { Elemental } from 'react-elemental';
// Example usage
const App = () => (
<Elemental fontOpts={{/* primary: 'url(path/to/font-regular.ttf)', secondary: 'url(path/to/font-bold.ttf)' */}}>
<MyComponent />
</Elemental>
);
b. Imperatively using the bootstrap function:
import { bootstrap } from 'react-elemental';
// Example usage
bootstrap({ primary: 'url(path/to/font-regular.ttf)', secondary: 'url(path/to/font-bold.ttf)' });
// Continue rendering components
React Elemental is a powerful UI library for React that offers a modern and flat design. It provides an effortless development experience by eliminating the need for importing CSS or modifying Webpack configurations. With support for ES6/JSX and server-side rendering, React Elemental offers a wide range of customizable UI components. Its installation process is straightforward, and it provides options for configuring global constants and reducing bundle size. In development, React Elemental offers a streamlined workflow with auto-transpilation and auto-rebuilding capabilities.