15.0.1 โ€ข Published 6 years ago

xn-reflex v15.0.1

Weekly downloads
14
License
MIT
Repository
github
Last release
6 years ago

โ˜๏ธ Reflex ยท CircleCI Test Coverage npm PRs Welcome

Reflex is a configurable grid and layout engine for React. With Reflex, you can eliminate your layout css or reduce it to just a few lines.

Learn how to use Reflex in your own project.

or

Play with a demo

๐Ÿ“บ Examples

We have several examples on the website. Here is one of them:

import * as React from 'react'
import { Grid } from 'xn-reflex'

<Grid>
  <Grid size={5} margin={2}>Content Here</Grid>
  <Grid size={7}>More Content</Grid>
</Grid>

This will create 2 columns of sizes 5, 7 (defaults to a 12-column grid).

There are additional components to assist with layout, for a deeper dive into reflex, check out the wiki, the examples here or follow the Getting Started guide.

๐Ÿ–ฅ Install

Reflex is available as the xn-reflex package on npm. It is also available on the unpkg CDN.

You can install it with:

yarn add xn-reflex

React and PropTypes are peer dependencies of the generated bundle.

โš™๏ธ Dev Mode

Ensuring a layout adheres to the grid can be difficult. To simplify this task, Reflex includes an overlay Component to assist you. During development, import and append <Dev/> to your pages. It doesn't render anything by default but pressing CTRL+SHIFT+K will toggle it.

Learn more about <Dev /> mode in the wiki.

import * as React from 'react'
import { Dev } from 'xn-reflex'

export default function MyPage() {
  return (<>
    <Dev />
    {/* other components */}
  </>)
}

๐Ÿ‘ฅ Contributors

The main purpose of this repository is to continue to evolve Reflex, making it more capable and easier to use. Development of Reflex happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Check the contributing.md to learn how you can take part in improving Reflex.

Thanks goes to these wonderful people (emoji key):

Oscar Bartra๐Ÿ› ๐Ÿ’ป ๐Ÿ“– ๐Ÿ‘€Andrew Hansen๐Ÿ’ฌ ๐Ÿ› ๐Ÿ’ป ๐Ÿ‘€Stephen Nomura๐ŸŽจAndrew Toy๐Ÿ› ๐Ÿ’ป ๐Ÿ’ก

This project follows the all-contributors specification. Contributions of any kind are welcome!

๐Ÿ Metrics

ProcessStatus
Code QualityCircleCI Test Coverage Code Climate codebeat badge Package Quality Sauce Test Status
Versioningsemantic-release Commitizen friendly npm
DependenciesKnown Vulnerabilities DavidDM bitHound Overall Score
File Sizegzipped bundle size
QuestionsJoin the chat at https://gitter.im/react-reflex/Lobby xn-reflex StackOverflow tags

Sauce Test Status

15.0.1

6 years ago

15.0.0

6 years ago

14.3.0

6 years ago

14.2.2

6 years ago

14.2.1

6 years ago

14.2.0

6 years ago

14.1.1

6 years ago

14.1.0

6 years ago

14.0.0

6 years ago

13.0.0

6 years ago

12.3.0

6 years ago

12.2.0

6 years ago

12.1.0

6 years ago

12.0.0

6 years ago

11.2.0

6 years ago

11.1.1

6 years ago

11.1.0

6 years ago

11.0.3

6 years ago

11.0.2

6 years ago

11.0.1

6 years ago

11.0.0

7 years ago

10.5.2

7 years ago

10.5.1

7 years ago

10.5.0

7 years ago

10.4.1

7 years ago

10.4.0

7 years ago

10.3.0

7 years ago

10.2.0

7 years ago

10.1.0

7 years ago

10.0.1

7 years ago

10.0.0

7 years ago

9.3.1

7 years ago

9.3.0

7 years ago

9.2.2

7 years ago

9.2.1

7 years ago

9.2.0

7 years ago

9.1.1

7 years ago

9.1.0

7 years ago

9.0.3

7 years ago

9.0.2

7 years ago

9.0.1

7 years ago

9.0.0

7 years ago

8.2.4

7 years ago

8.2.3

7 years ago

8.2.2

7 years ago

8.2.1

7 years ago

8.2.0

7 years ago

8.1.1

7 years ago

8.1.0

7 years ago

8.0.1

7 years ago

8.0.0

7 years ago

7.0.4

7 years ago

7.0.3

7 years ago

7.0.2

7 years ago

7.0.1

7 years ago

7.0.0

7 years ago

6.0.0

7 years ago

5.3.9

7 years ago

5.3.8

7 years ago

5.3.7

7 years ago

5.3.6

7 years ago

5.3.5

7 years ago

5.3.4

7 years ago

5.3.3

7 years ago

5.3.2

7 years ago

5.3.1

7 years ago

5.3.0

7 years ago

5.2.1

7 years ago

5.2.0

7 years ago

5.1.3

7 years ago

5.1.2

7 years ago

5.1.1

7 years ago

5.1.0

7 years ago

5.0.0

7 years ago

4.0.0

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago