# style-sheet-component

> react.js simple library for styling components

Latest version **1.0.2** (published 2020-12-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install style-sheet-component
pnpm add style-sheet-component
yarn add style-sheet-component
bun add style-sheet-component
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-12-13 |
| First published | 2020-12-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Michal Hiterski |
| Maintainers | hity |
| Keywords | reactjs, react, react-native, component-style-sheet, style-sheet, js, ts, style, styles, stylesheet |

## Links

- npm: https://www.npmjs.com/package/style-sheet-component
- Repository: https://github.com/Hityy/style-sheet-component
- Homepage: https://github.com/Hityy/style-sheet-component#readme
- Issues: https://github.com/Hityy/style-sheet-component/issues
- npm.io page: https://npm.io/package/style-sheet-component

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-12-13
- 1.0.1 — 2020-12-12
- 1.0.0 — 2020-12-12

## README

# style-sheet-component
Write styles and code in one file reactjs component like in react-native approach together with type checking and intellisense.

## Installation

`npm install style-sheet-component` 

## Example 
```typescript
import React, { FC } from 'react';
import { StyleSheet } from 'style-sheet-component';

interface Props {
    text: string;
}

export const ExampleComponent: FC<Props> = ({ text }) => {
    return (
        <div style={styles.container}>
            <p style={styles.text}>{text}</p>
        </div>
    );
};

const styles = StyleSheet.create({
    container: {
        margin: '5px 20px',
        backgroundColor: 'blue'
    },
    text: {
        fontSize: "12px",
        color: 'yellow',
    }
});
```

---
_Source: https://npm.io/package/style-sheet-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
