Radix
Radix-UI
- npm install @radix-ui/themes
-
npm i @radix-ui/react-icons
- https://www.radix-ui.com/ Radix-UI Button Component
- https://www.radix-ui.com/themes/docs/components/button
import '@radix-ui/themes/styles.css';
- 전역 layout.tsx에붙이기
마크다운에디터추가
- npm install --save react-simplemde-editor easymde
- npm i react-markdown
- npm i -D @tailwindcss/typography (플러그인에써야함)
import SimpleMdeReact from "react-simplemde-editor";
import "easymde/dist/easymde.min.css";
<SimpleMdeReact />;
- next js사용시 lazyloading으로 에러해결
const SimpleMDE = dynamic(() => import("react-simplemde-editor"), {
ssr: false,
});
'프로그래밍 > NextJS' 카테고리의 다른 글
nextjs 넥스트 필터링 및 차트구현 rechats (0) | 2024.01.22 |
---|---|
nextauth 넥스트어스 사용하기 (0) | 2024.01.22 |
nextjs prisma 넥스트 프리즈마 세팅 (0) | 2024.01.22 |
nextjs nodemailer 연동하기 (0) | 2024.01.08 |
nextjs api폴더 리팩토링 (0) | 2024.01.06 |