Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thednp/solid-color-picker
🎨 Modern Color Picker for SolidJS
https://github.com/thednp/solid-color-picker
color-picker solidjs typescript
Last synced: 15 days ago
JSON representation
🎨 Modern Color Picker for SolidJS
- Host: GitHub
- URL: https://github.com/thednp/solid-color-picker
- Owner: thednp
- License: mit
- Created: 2023-08-16T20:21:38.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-03T08:15:33.000Z (about 1 month ago)
- Last Synced: 2024-10-15T04:28:04.178Z (29 days ago)
- Topics: color-picker, solidjs, typescript
- Language: TypeScript
- Homepage: https://thednp.github.io/solid-color-picker/
- Size: 28.7 MB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://thednp.github.io/solid-color-picker)
# Solid Color Picker
[![Coverage Status](https://coveralls.io/repos/github/thednp/solid-color-picker/badge.svg)](https://coveralls.io/github/thednp/solid-color-picker)
[![ci](https://github.com/thednp/solid-color-picker/actions/workflows/ci.yml/badge.svg)](https://github.com/thednp/solid-color-picker/actions/workflows/ci.yml)
[![Npm Version](https://img.shields.io/npm/v/@thednp/solid-color-picker)](https://www.npmjs.com/package/@thednp/solid-color-picker)
[![typescript version](https://img.shields.io/badge/typescript-5.6.2-brightgreen)](https://www.typescriptlang.org/)
[![eslint version](https://img.shields.io/badge/eslint-8.57.1-brightgreen)](https://github.com/eslint)
[![prettier version](https://img.shields.io/badge/prettier-3.3.3-brightgreen)](https://prettier.io/)
[![solid-js version](https://img.shields.io/badge/solid--js-1.9.1-brightgreen)](https://solidjs.com/)
[![vitest version](https://img.shields.io/badge/vitest-2.1.2-brightgreen)](https://vitest.dev/)
[![vite version](https://img.shields.io/badge/vite-5.4.8-brightgreen)](https://github.com/vitejs)The feature rich **ColorPicker** component for SolidJS, sourced with TypeScript, WAI-ARIA compliant and is mainly based on [ColorPicker](http://github.com/thednp/color-picker).
## Demo
[Live Demo](https://thednp.github.io/solid-color-picker)## 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
```bash
npm i @thednp/solid-color-picker
# or
yarn add @thednp/solid-color-picker
# or
pnpm add @thednp/solid-color-picker
```## Usage
```tsx
import { DefaultColorPicker } from '@thednp/solid-color-picker'
import '@thednp/solid-color-picker/style.css'function App() {
return console.log(color)} />;
}
```
For additional component configuration options, please check the [demo](https://thednp.github.io/solid-color-picker).## Some notes
* The SolidJS version for [ColorPicer](https://github.com/thednp/color-picker) 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](https://github.com/thednp/solid-color-picker/blob/master/LICENSE).