React Widgets
"An à la carte set of polished, extensible, and accessible inputs built for React" - packaged for easy use in Meteor and Universe
For more info and examples see official docs at: https://jquense.github.io/react-widgets/docs/
Install
Just add this package to your app with:
meteor add universe:react-widgets
This package make use of universe:modules
under the hood.
Usage
Use Universe Modules to import widgets components
Inside import.jsx file
import {Calendar, DateTimePicker} from '{universe:react-widgets}'; // use widgets
Inside regular jsx file (dynamic loading)
System.import('{universe:react-widgets}').then(ReactWidgets => { // use widgets over here, e.g. let Calendar = ReactWidgets.Calendar; React.render(<Calendar defaultValue={new Date()} />, mountNode); })
Exported components
{universe:react-widgets}
will export these components:
DropdownList
- docsCombobox
- Select an item from the list, or input a custom value. The Combobox can also make suggestions as you type docsMultiselect
- A select listbox alternative docsSelectList
- Creates a list of radio buttons or checkboxes bound to a data set docsDateTimePicker
- docsCalendar
- docsNumberPicker
- Spinner for selecting numbers docsconfigure
- react-widgets helperutils
- react-widgets helpersglobalizeLocalizers
- react-widgets helpers, check docs for more infoGlobalize
- A Globalize.js (version 0.1.1) instance that is used by widgets. If you want to localize widgets you need to mutate this instance or assign new withconfigure