Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.

Repository files navigation

React CSS Editor

React textarea component for editing style objects as CSS strings

Demo: http://jxnblk.com/react-css-editor

npm i react-css-editor
importReactfrom'react'importCSSEditorfrom'react-css-editor'classAppextendsReact.Component{state={style: {color: 'tomato'padding: 16}}update=fn=>{this.setState(fn)}render(){const{ style }=this.statereturn(<div><CSSEditorvalue={style}onChange={val=>{this.update(state=>({style: val}))})/><buttonstyle={style}children='Hello'/></div>)}}

MIT License

About

No description, website, or topics provided.

Resources

Stars

22 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages