Skip to content

Commit

Permalink
add color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
softmarshmallow committed Feb 27, 2024
1 parent 170dd82 commit e88df9b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/editor-ui-color-picker/color-picker.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react";
import { RgbaColorPicker } from "react-colorful";

export function ColorPicker(
props: React.ComponentProps<typeof RgbaColorPicker>
) {
return <RgbaColorPicker {...props} />;
}
1 change: 1 addition & 0 deletions packages/editor-ui-color-picker/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./color-picker";
3 changes: 2 additions & 1 deletion packages/editor-ui-color-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@editor-ui/color-picker",
"version": "0.0.0",
"dependencies": {
"@editor-ui/foundation": "0.0.0"
"@editor-ui/foundation": "0.0.0",
"react-colorful": "^5.6.1"
}
}

0 comments on commit e88df9b

Please sign in to comment.