cat-components
v1.9.11
Published
react components
Downloads
90
Readme
Cat-components
Here are react
components, decorators and a function to rendering html
with react
. All components are build with radium.
How to use it
You can see here to learn how to use components and decorators.
List
Styles
- color
- layout
Components
- alert
- bundle
- button
- calendar
- calendar-table
- loading
- i18n
- icon
- img
- img-zoom
- input
- input-redux
- link
- loading
- menu
- picture-slideshow
- sidebar
- slider
- square
- table
- timeline
- toggle
- wrapper
- video-subtitle
Decorators
- checkFBAPI
- goToAnimation
- timer
Templates
You can use yarn copy
to copy the tempalates
.
Bin
Use to render HTML
with react
and nunjucks
.
static [config name]
Config
You can use any name, but need to give this name as argument.
Example:
module.exports = [{ component: './lib/components/Index', js: 'index', name: 'index' }];
options
component(required)
: This is your main component.name(required)
: The name ofhtml
is rendered.root(default: './views')
: This is the root folder ofviews
which is yourtemplate
folder.template(default: './views/template.html')
: If you need, you can choose your template inviews
.props
: Giveprops
to your component.- You can add any option to your
template
.
License
MIT © hsuting