color-picker-svelte
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

Color Picker Svelte

NPM License NPM Downloads test

Color picker for Svelte

DemoREPL

Install

npm install color-picker-svelte

Usage

<script>
  import { Color, ColorInput } from 'color-picker-svelte'

  let color = new Color('#ff3d91')
</script>

<ColorInput bind:color title="Color" />

Dev instructions

Get started

  1. Install Node.js
  2. Run npm install

Commands

  • npm run dev: Start in dev mode
  • npm run build: Build
  • npm run lint: Lint
  • npm run format: Format

Publish new version

  1. Update CHANGELOG.md
  2. Check for errors
    npm run lint
    
  3. Bump the version number
    npm version --no-git-tag <version>
    
  4. Generate the package
    npm run package
    
  5. Publish the package
    npm publish
    
  6. Commit with a tag in format "v#.#.#"
  7. Create GitHub release with release notes

Package Sidebar

Install

npm i color-picker-svelte

Weekly Downloads

215

Version

1.4.1

License

MIT

Unpacked Size

25.3 kB

Total Files

20

Last publish

Collaborators

  • probablykasper