diff --git a/package.json b/package.json index c11ef8dc..a6b4f511 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "next": "14.2.3", "next-international": "^1.2.4", "react": "^18", + "react-colorful": "^5.6.1", "react-datepicker": "^7.3.0", "react-dom": "^18", "react-responsive-modal": "^6.4.2", diff --git a/src/components/Playground.jsx b/src/components/Playground.jsx index e1043d2b..609062f7 100644 --- a/src/components/Playground.jsx +++ b/src/components/Playground.jsx @@ -1,6 +1,8 @@ 'use client' +import { useState } from 'react' import { Button, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow } from '@nextui-org/react' +import ColorPicker from './common/color-picker/ColorPicker' import { useAxios } from '@/hooks/useAxios' import { useMessage } from '@/hooks/useMessage' @@ -15,6 +17,8 @@ export default function Playground() { const testVar = process.env.NEXT_PUBLIC_TEST const { getMessage } = useMessage() + const [color, setColor] = useState('#ff0000') + const handleUsers = async () => { // const users = await get('/api/user/find-all') const params = { @@ -61,6 +65,10 @@ export default function Playground() {
Sass 테스트입니다.