0.1.6 • Published 4 years ago

savignano-flex v0.1.6

Weekly downloads
56
License
MIT
Repository
github
Last release
4 years ago

Write JavaScript Flex styles and have them served in css.

NPM Version NPM Downloads CircleCI codecov.io BundleSize Dependencies DevDependencies PeerDependencies Patreon

Savignano-Flex is a JavaScript library for styling user interfaces.

  • Declarative: Define the styles you need and enjoy the benefit of cached css without the cost of inline style redefinition.
  • Flexible: No pun intended. Props that do not have css definitions will be inline styled. You may also pass a style prop. Have a className you'd like incorporated? Pass in a className prop and have it concatenated.

Installation

npm install savignano-flex

Usage

Here is an example to get you started:

import React from 'react';
import ReactDOM from 'react-dom';
import Flex from 'savignano-flex';

function App() {
  return (
    <Flex alignItems="center" flexFlow="row wrap" justifyContent="center">
      <p>This</p>
      <p>content</p>
      <p>is horizontal</p>
    </Flex>
  );
}

ReactDOM.render(<App />, document.querySelector('#app'));

Examples

Codesandbox

Contributing

  • see CONTRIBUTING.md
0.1.6

4 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago