-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature/�BAR-161] Tab 컴포넌트 Switcher 디자인 구현 (#42)
* chore(package): framer-motion 추가 * chore(assets): 아이콘 추가 * feat(Tab): filter, switcher 타입 추가 * feat(Tab): tab 타입별 스토리 코드 추가 * fix: 옵셔널 타입으로 수정 * feat: Tabs.Trigger에 아이콘을 추가하는 경우, 아닌 경우의 스토리 코드 추가 * fix: 삼항 연산자에서 && 연산자로 수정 * refactor: 조건부 아이콘 렌더링 조건 수정
- Loading branch information
Showing
13 changed files
with
363 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import type { PropsWithChildren } from 'react'; | ||
|
||
import { useTabsContext } from '@hooks/useTabsContext'; | ||
|
||
import * as styles from '../style.css'; | ||
|
||
const TabsList = ({ children }: PropsWithChildren) => { | ||
return <ul className={styles.tabsList}>{children}</ul>; | ||
const { type } = useTabsContext(); | ||
|
||
return <ul className={styles.tabsList({ type })}>{children}</ul>; | ||
}; | ||
|
||
export default TabsList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.