react-lite-space
React component for space
Last updated 10 years ago by jiyinyiyong .
MIT · Repository · Bugs · Original npm
$ cnpm install react-lite-space 
SYNC missed versions from official npm registry.

React Lite Space

React component for space.

Demo http://ui.talk.ai/react-lite-space

Usage

npm i --save react-lite-space

Props, only use one of them, be either vertical or horizontal:

  • width value for inline CSS, defaults to 100%
  • height value for inline CSS, defaults to '1em'
React = require 'react'

Space = React.createFactory require 'react-lite-space'

{div, span} = React.DOM

module.exports = React.createClass
  displayName: 'app-page'

  render: ->
    div className: 'app-page',
      div style: @styleLine,
        span null, 'text'
        Space width: 10
        span null, 'text'
      Space height: 20
      div style: @styleLine,
        span null, 'text'
        Space width: 20
        span null, 'text'

Develop

https://github.com/teambition/coffee-webpack-starter

License

MIT

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

1 Versions

  • 1.0.0                                ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (22)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org