0.0.13 • Published 7 months ago

@thednp/solid-color-picker v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Solid Color Picker

Coverage Status ci Npm Version typescript version solid-js version vitest version vite version

The feature rich ColorPicker component for SolidJS, sourced with TypeScript, WAI-ARIA compliant and is mainly based on ColorPicker.

Demo

Live Demo

Highlights

  • Accessibility Focus for WAI-ARIA compliance
  • Built in translations for German, French, Russian, Arabic, Spanish, Portuguese, Romanian, Polish, Chinese, Korean and Japanese for accessibility
  • TypeScript sourced code base
  • Supporting HEX(a), RGB(a), HSL(a) and HWB(a)
  • Supports keyboard and touch events as well as responsive design
  • Automatic repositioning of the popup dropdown on show / window scroll
  • Right To Left Languages Supported

Installation

npm i @thednp/solid-color-picker
# or
yarn add @thednp/solid-color-picker
# or
pnpm install @thednp/solid-color-picker

Usage

import { DefaultColorPicker } from '@thednp/solid-color-picker'
import '@thednp/solid-color-picker/style.css'

function App() {
  return <DefaultColorPicker value="turquoise" onChange={color => console.log(color)} />;
}

For additional component configuration options, please check the demo.

Some notes

  • The SolidJS version for ColorPicer was implemented with minor differences to accomodate the declarative nature of the modern JavaScript framework, especially with event listeners.
  • Tests powered by Vitest make use of a real browser environment for consistent and realistic results.

License

Solid Color Picker is released under the MIT License.

0.0.13

7 months ago

0.0.11

9 months ago

0.0.12

9 months ago

0.0.10

9 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago