Belle is a library that provides configurable React components. The set of React components include Toggle, ComboBox, Rating, TextInput, Button, Card, Select, etc.
All of the components are optimized to work on both mobile and desktop devices. The styles are highly customizable on two levels:
As an example, let’s create a toggle and a text field in React.
Belle provides the TextInput
and Toggle
components. We will use these components in our parent App
component.
import React from 'react'; import ReactDOM from 'react-dom'; const belle = require('belle'); const TextInput = belle.TextInput; const Toggle = belle.Toggle; const App = () => { return ( <div> <p>Toggle:</p> <Toggle /> <p>Text Input:</p> <TextInput defaultValue="Add text here..." /> </div> ); }; ReactDOM.render( <App />, document.getElementById('root') );
Note: Belle no longer works with the latest versions of React (v16+), so you need to use React v15. You can check out the GitHub repo for updates.
Free Resources