Skip to content

devgru/react-z-order

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

React Z-Order

React component that orders its children by z property.

Distributed as UMD module.

Installing

$ yarn add react-z-order
# or
$ npm install --save react-z-order

Usage:

import ZOrder from 'react-z-order';

<ZOrder>
  <circle x={10} y={10} z={10} />
  <circle x={30} y={30} z={30} />
  <circle x={20} y={20} z={20} />
</ZOrder>

Produces <g> with ordered children and removes z property:

<g>
  <circle x="10" y="10" />
  <circle x="20" y="20" />
  <circle x="30" y="30" />
</g>

Development

  • Run tests: yarn test;
  • Build yarn build;

License

MIT © Dmitriy Semyushkin

About

React component that orders its children by z property

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published