ember-palette

Simple palette component for choosing a predefined color

Usage no npm install needed!

<script type="module">
  import emberPalette from 'https://cdn.skypack.dev/ember-palette';
</script>

README

ember-palette

Simple palette component for choosing a predefined color

NPM Build Status Ember Observer Score

Compatibility

  • Ember.js v3.12 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-palette

Usage

<ColorPalette
  @selected={{this.color}}
  @onselect={{fn (mut this.color)}}
/>

API

  • selected - CSS color string, hex is using default colors e.g. '#333333'.
  • onselect - Action that receives the selected color string.
  • colors - Array of color strings, overrides the default hex strings array.

Contributing

See the Contributing guide for details.

Attribution

Default colors taken from materialpalette.com.