Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 1.53 KB

README.md

File metadata and controls

72 lines (47 loc) · 1.53 KB

React CSS Tools

Build status Coverage Vulnerabilities

Some loose React CSS helper functions.

Installation

npm i @talesoft/react-css-tools

TypeScript supported out-of-the-box.

Usage

classes(...args)

import { classes } from '@talesoft/react-css-tools';

function MyComponent(props) {
    return <div className={classes('MyComponent', props.active && 'active')}>
        Hello World!
    </div>;
}

Contributing

Before contributing, check out the Contribution Guidelines

Requires: npm

// Pull project
git clone https://github.com/Talesoft/tick-js

// Enter project directory
cd geometry-js

// Install development dependencies
npm install

// ... make your changes ...

// Run tests
npm run test

// Lint
npm run lint

// Fix linting problems
npm run lint:fix

// Build
npm run build

// ... create branch, commit, push, merge request etc. ...