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.

svg viewer

All of the components are optimized to work on both mobile and desktop devices. The styles are highly customizable on two levels:

  1. You can configure the base styles of all the components.
  2. You can modify each one of them individually.
Some of the components available in Belle
Some of the components available in Belle

Installation

Belle can be installed as an npm package:

npm install belle

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.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved