react-jss-preset-civicsource
v1.0.0
Published
Shareable react-jss preset to be used in CivicSource client applications
Downloads
3
Readme
CivicSource react-jss
Preset
Shareable
react-jss
preset to be used in CivicSource client applications
Install
npm install react-jss-preset-civicsource -S
Usage
import useSheet from "react-jss-preset-civicsource";
const styles = {
fancy: {
outline: "3px solid #0f0"
}
};
const Widget = ({
children,
sheet: { classes },
...props
}) => (
<div {...props}>
<div className={classes.fancy}>
{children}
</div>
</div>
);
export default useSheet(Widget, styles, { meta: __filename });
Versioning
When making changes, be sure to follow semantic versioning.
- Any change to this preset or any of its dependencies which alters the signature of
useSheet
should be a major version bump.