Skip to content

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages