burano
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

burano Color Picker

burano

🎨 Color Picker for React.

Installation & Usage

npm install burano
import React, { useState } from 'react'
import { ColorPicker } from 'burano'

export const MyPicker = () => {
  const [color, setColor] = useState('#00FF00')

  return <ColorPicker color={color} onColor={setColor} />
}

Options

<ColorPicker
    color={string} // The initial color, default black.
    onColor={(color: string) => void} // Handle new color, required.
    style={CSSProperties} // Styles applied to wrapper div, optional.
    input={boolean} // Show input, default true.
    palette={boolean} // Show color palette, default true.
/>


Burano island generated with hotpot.ai

Readme

Keywords

Package Sidebar

Install

npm i burano

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

44 kB

Total Files

10

Last publish

Collaborators

  • tobua