css-js-components

1.1.1 • Public • Published

css-js-components

react, react-native styled by css prop

Usage

//IMPORT
//react
import { Div, Button, Img, H1 } from 'css-js-components';
//react-native react-native-web 
import { View, Button } from 'css-js-components';
 

Then use css={{stylesObject}}

import React from "react";
import { Button, Text, View } from "css-js-components";
import * as N from 'react-native'
 
const App = () => {
 
    return (
        <View css={{
            flex: 1,
            justifyContent: "center",
            alignItems: "center",
        }}>
            <Button css={{
                fontSize: 20,
                color: 'white',
                backgroundColor: "darkgreen",
                justifyContent: "center",
                textAlign: "center",
                width: 80,
                height: 80,
                border: "1px solid black",
                borderRadius: 50,
                position: "absolute",
                right: 50,
                bottom: 50,
            }}
                onPress={() => { console.log('PRESS') }}
            >PRESS</Button>
            
        </View>
    );
};
 
 
export default App;
 

Created by Le Quy Sang

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.11
1.1.00
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.9.90
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i css-js-components

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

12.6 kB

Total Files

6

Last publish

Collaborators

  • lequysang