What is Belle in React?
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:
- You can configure the base styles of all the components.
- You can modify each one of them individually.
Code
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
Copyright ©2026 Educative, Inc. All rights reserved