300x250 styled-component1 [react, Css-in-JS] tab메뉴 만들기, 스타일 적용, 탭메뉴 tab메뉴 만들기 결과화면(스토리북 이용) 1. import import React, { useState } from 'react'; import styled from 'styled-components'; 2. styled 사용시 submenu라는 클래스 네임에 스타일을 적용시키기 위해선 다음과 같이 하면된다. const TabMenu = styled.ul` background-color: #dcdcdc; font-weight: bold; display: flex; flex-direction: row; justify-items: center; align-items: center; list-style: none; .submenu { width:100% auto; padding: 15px 10px; curs.. 2021. 6. 8. 이전 1 다음 반응형