1
0
mirror of https://github.com/yldio/copilot.git synced 2025-01-06 17:10:13 +02:00
copilot/ui/src/components/row
2017-02-23 15:09:27 +00:00
..
index.js convert commonjs to es2015 modules (fixes #234) 2017-02-23 15:09:27 +00:00
readme.md wip rm css 2016-12-12 10:28:47 +00:00
size-apply.js convert commonjs to es2015 modules (fixes #234) 2017-02-23 15:09:27 +00:00
size-match.js convert commonjs to es2015 modules (fixes #234) 2017-02-23 15:09:27 +00:00

<Row>

demo

const styleSheet = require('styled-components/lib/models/StyleSheet')
const React = require('react');
const ReactDOM = require('react-dom/server');
const Row = require('./index.js');
const Container = require('../container');
// const styles = styleSheet.rules().map(rule => rule.cssText).join('\n')

nmodule.exports = ReactDOM.renderToString(
  <Row center='xs' start='sm'>
    <pre>{styleSheet}</pre>
    <button>1</button>
    <button>2</button>
  </Row>
);

usage