DocSpace-client/packages/shared/components/color-input
2024-03-21 18:09:55 +04:00
..
ColorInput.stories.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ColorInput.styled.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ColorInput.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ColorInput.types.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
index.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
README.md Web: Shared: ColorInput components was added 2024-01-23 14:49:20 +05:00

ColorInput

Color input

Usage

import { ColorInput } from "@docspace/shared/components/color-input";
<ColorInput
  defaultColor="#4781D1"
  handleChange={(color) => console.log(color)}
/>

Properties

Props Type Required Values Default Description
className string - - '' Allows to set classname
id string - - '' Allows to set id
defaultColor string - - - Default color
handleChange func - - - Allows handling the changing values of the component
size bool - - - Supported size of the input fields.
scale bool - - - Indicates the input field has scale
isDisabled bool - - - Indicates that the field cannot be used
hasError bool - - - Indicates the input field has an error
hasWarning bool - - - Indicates the input field has a warning