본 게시글에서 소개되는 UI 라이브러리들은 프로젝트를 통해 오랫동안 직접 사용해본 것이 아닌
학습용으로 여러 가지 자료를 찾아 작성되었음을 알려드립니다 (개인적인 의견도 살짝 포함되어 있습니다)
material UI 공식사이트
구글 머테리얼 디자인을 기반으로 제작된 UI 라이브러리
📌 설치 방법
npm install @material-ui/core
또는 yarn install @material-ui/core
// 아이콘 사용시 설치
npm install @material-ui/icons
또는 yarn install @material-ui/icons
📌 사용 방법
import React from 'react';
import { Button } from '@material-ui/core';
function MaterialUI() {
return (
<div>
<Button href="#">Button</Button>
</div>
);
}
export default MaterialUI;
📌 장점
📌 단점
const Hover = styled('div')({
backgroundColor: 'red',
});
Ant Design 공식사이트
리액트와 타입스크립트(Typescript) 기반으로 제작된 UI 라이브러리
알리바바 그룹의 자회사로 핀테크 기술을 개발하는 Ant Financial에서 제공
📌 설치 방법
npm install antd --save
또는 yarn add antd --save
📌 사용 방법
// index.js
import 'antd/dist/antd.css';
// your component
import React, { useState } from 'react';
import { Button } from 'antd';
function Antd() {
return (
<div>
<Button type="primary">Button</Button>
</div>
);
}
export default Antd;
📌 장점
📌 단점
Chakra UI 공식사이트
Segun Adebayo가 만든 React용 최신 구성 요소 UI 라이브러리
📌 설치 방법
npm i @chakra-ui/react @emotion/react @emotion/styled framer-motion
또는 yarn add @chakra-ui/react @emotion/react @emotion/styled framer-motion
📌 사용 방법
// index.js
import { ChakraProvider } from "@chakra-ui/react"
// your component
import React from 'react';
import { ChakraProvider, Button } from '@chakra-ui/react';
function ChakraUI() {
return (
<div>
<ChakraProvider>
<Button colorScheme="blue">Button</Button>
</ChakraProvider>
</div>
);
}
export default ChakraUI;
📌 장점
WAI-ARIA (Web Accessibility Initiative – Accessible Rich Internet Applications)
: 웹 페이지, 특히 동적 콘텐츠, 그리고 Ajax, HTML, 자바스크립트 및 관련 기술로 개발된
사용자 인터페이스 구성 요소의 접근성을 증가시키는 방법에 대해 규정한 W3C가 출판한 기술 사양
📌 단점
React-Bootstrap 공식사이트
Bootstrap을 리액트 기반으로 변경한 UI 라이브러리
📌 설치 방법
npm install react-bootstrap bootstrap
📌 사용 방법
import React from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import { Button } from 'react-bootstrap';
function ReactBootstrap() {
return (
<div>
<Button variant="primary">Primary</Button>
</div>
);
}
export default ReactBootstrap;
📌 장점
📌 단점
Reactstrap 공식사이트
Bootstrap 4.x alpha 버전을 적용한 UI 라이브러리
📌 설치 방법
npm install bootstrap
npm install reactstrap react react-dom
📌 사용 방법
import React from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import { Button } from 'reactstrap';
function Reactstrap() {
return (
<div>
<Button color="info">Button</Button>
</div>
);
}
export default Reactstrap;
📌 장점
📌 단점
antd 는 여러 이유로 비추입니다.
form 작성할 때 렌더 이슈가 있는데, 이상할 때가 많습니다.