ember-palette

3.0.2 • Public • Published

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.

Package Sidebar

Install

npm i ember-palette

Weekly Downloads

13

Version

3.0.2

License

MIT

Unpacked Size

9.85 kB

Total Files

16

Last publish

Collaborators

  • knownasilya