Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
hxf31891 authored Jun 6, 2024
1 parent fb61b56 commit 42f9bd7
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,11 @@
import React, { useRef } from 'react'
import PickerContextWrapper from '../context.js'
import Picker from './Picker.js'
import { LocalesProps } from '../shared/types.js'
import { ColorPickerProps } from '../shared/types.js'
import { defaultLocales } from '../constants.js'
import { objectToString } from '../utils/utils.js'
import coreCss from '../core.module.css'

type ColorPickerProps = {
value?: string
onChange: (value: string) => void
hideControls?: boolean
hideInputs?: boolean
hideOpacity?: boolean
hidePresets?: boolean
hideHue?: boolean
presets?: string[]
hideEyeDrop?: boolean
hideAdvancedSliders?: boolean
hideColorGuide?: boolean
hideInputType?: boolean
hideColorTypeBtns?: boolean
hideGradientType?: boolean
hideGradientAngle?: boolean
hideGradientStop?: boolean
hideGradientControls?: boolean
width?: number
height?: number
style?: {}
className?: any
locales?: LocalesProps
disableDarkMode?: boolean
}

export function ColorPicker({
value = 'rgba(175, 51, 242, 1)',
onChange,
Expand Down

0 comments on commit 42f9bd7

Please sign in to comment.