Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 251 Bytes

rule.md

File metadata and controls

15 lines (11 loc) · 251 Bytes

rule() Interface

Given a CSS-like object returns a string of class names.

Example

import rule from 'freestyler/lib/rule';

const classNames = rule({
    color: 'blue',
    background: 'yellow',
    border: '1px solid tomato',
});