This repository has been archived by the owner. It is now read-only.
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
public
src
.babelrc
README.md
package-lock.json
package.json
webpack.common.config.js
webpack.dev.config.js
webpack.prod.config.js

README.md

React

React.js version of the hue slider component.

Development

Install dependencies:

$ npm i

Then run the application:

$ npm run start

Component features

Without any props or children:

<HueSlider />

Add hue prop to set a custom initial value:

<HueSlider hue="180" />

Use a different input element:

<HueSlider>Lorem ipsum</HueSlider>

Web Component features

Without any props or children:

<hue-slider-react></hue-slider-react>

Add hue prop to set a custom initial value:

<hue-slider-react hue="180"></hue-slider-react>

Use a different input element:

<hue-slider-react>Lorem ipsum</hue-slider-react>

To-do's

  • Add the styles to the generated Web Component.