Configurable React Components with great UX.
Website & Documentation: http://nikgraf.github.io/belle/
Belle is available as npm package. Once you have npm you can install Belle in your project folder with:
npm install belle
We recommend you to get started with React first. Once you have a simple application setup you can import any Belle component and use it right away. No stylesheets, font or any other prerequisite needed.
<!--You can use browserify, webpack or similar toolsto compile & combine your JSX code-->
var React = ;var belle = ;var TextInput = belleTextInput;var App = React;React;
In addition you can dig through the documentation to learn about how to modify Belle components.
"Great UX starts with a good UI"
With Belle I'm aiming to provide a library that follows a couple well established principles. While some of them might not be consider best practice today We believe they will become some day in the near future.
The most important attribute of any great experience is that there was no hassle to achieve the initial goals.
Every object someone interacts with has it's own little language. This language must be learned by everyone getting in touch with a new set of object. In order to provide a great experience the amount to learn should be reduced to a minimum.
There are two major personalities to target with Belle. One is the developer. For him/her APIs should be provided in a consistent way through all components. The other and more important is the users of the components. Every color, animation or behavior should be aligned with the other components to provide a great experience.
There is no reason while a style designed one specific element should affect others. In CSS styles are often defined by overwriting previous ones and introducing deeper and deeper nesting. Once nesting is introduced resolution of styles for one specific element is not a trivial task anymore. Due this managing CSS dependencies is hard. It is hard to predict how an application looks like after updating or removing dependency.
That's why with Belle styles should apply to the components themselves in the DOM. By doing so the visual appearance and business logic are combined in location.
Let people know how their behavior affects the system. It assures them that their input was acknowledged which provides them with a feeling of control over the system.
The user should see affects of their actions instantly. Any delay can cause confusion and frustration. While instant certainly is not always possible Belle strives to provide an experience close to instant.
You can install the development environment with
npm run build will trigger a build into the
lib folder. To develop a component it's convenient to use the examples or docs application.
To run the examples or docs you go into the folder
examples and run
npm install and
npm start. The app will run with hot reloading on
In order to run the tests use
To run the test continuously you can use
npm run test:watch.
In addition you can ask the community by posting your question to StackOverflow with the belle tag..
Thanks to Christian Steiner from http://www.cropd.at/ for creating the logo and helping out with the design.
Special thanks to Jyoti Puri for the tremendous amount of work she put into this endeavor.