Skip to content

Commit

Permalink
type(Hex): fix hue type issue. (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 22, 2023
1 parent 4618049 commit 18dfae7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/color-hue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ export default function Demo() {
}
```

```jsx mdx:preview
import React, { useState } from 'react';
import Hue from '@uiw/react-color-hue';

export default function Demo() {
return (
<Hue hue={undefined} />
);
}
```

## Props

```ts
Expand Down
2 changes: 1 addition & 1 deletion packages/color-hue/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Alpha, { AlphaProps } from '@uiw/react-color-alpha';

export interface HueProps extends Omit<AlphaProps, 'hsva' | 'onChange'> {
onChange?: (newHue: { h: number }) => void;
hue: number;
hue?: number;
}

const Hue = React.forwardRef<HTMLDivElement, HueProps>((props, ref) => {
Expand Down
4 changes: 4 additions & 0 deletions packages/color/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ function Demo() {
}
```

## Documentation

You can find the react-color documentation [on the website](https://uiwjs.github.io/react-color/).

## Packages

Package | Bundle size(gzip) | Downloads | Version / unpkg
Expand Down

0 comments on commit 18dfae7

Please sign in to comment.