313 karma · joined September 22, 2014
- Highly functional and flexible validation
- Built-in Form Inputs
- Input Utility - Easily and quickly build your own input types
- Field Utility - Functionally control any field, anywhere in a form
- Nested forms and form splitting
- Powerful form lifecycle hooks and events
- Serializable Event and State hooks (think redux/mobx/etc & HMR)
No boilerplate Dedicated build system Scaffolding tools Minimal API Simple and scalable state management based on redux
You can have it installed and be writing actual code (not setup or boilerplate) in less than 5 minutes.
Already have your own build system? Just use the module and ditch you react/redux boilerplate!
- Supports single page apps, and complex scrollable content - Responsive & Intelligent - Automagic Tooltip Positioning, it just works. - Promise Driven Events & Hooks for fine-grained control - It's very lean for the features it has. 12k gzipped. - Most importantly, Tour does not restyle, change z-indices, or manipulate your DOM elements in any way
Give it a try! The beta is already available on NPM CDN:
https://npmcdn.com/tour@latest/dist/tour.js
https://npmcdn.com/tour@latest/dist/tour.css
----- Quick JS Demo -----
import Tour from 'tour'
const myTour = {
canExit: true,
steps: [{
target: '#first-element',
content: 'This is the first step!',
}, {
target: '.some .other .element',
content: 'Blah blah blah. I prefer to show up on the right.',
}, {
target: '#menu-element',
content: 'I guess this is a menu!',
}, {
target: '#last-element',
content: 'It is over! :(',
}],
};Tour.start(myTour)
.then(() => {
console.log('Tour Finished!');
})
.catch(() => {
console.log('Tour Interrupted!')
});
------------------------