noclassname
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

NoClassName

Create component without classnames like styled-components. This package under development now.

USAGE

import styled from 'noclassname';
const MyButton = styled.button`
	background-color: blue;
	color: #fff;
	border: 1px solid blue;
`
const MyInput = styled.input`
	padding: 10px 20px;
`
const Container = styled.div`
	text-align: center;
`
// usage

function SomeComponent(){
	return (
	<Container>
		<MyInput />
		<MyButton onClick={() => alert('hello noclassname')))}>Click me</MyButton>
	</Container>
	)
}

Package Sidebar

Install

npm i noclassname

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

3.84 kB

Total Files

6

Last publish

Collaborators

  • ismatovsanjarbek