Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
📘 Input 컴포넌트 사용 방법Input은 라벨, 입력 필드, 날짜 입력, 우측 버튼, 에러 메시지 등 입력에 필요한 구성 요소를 조합하여 사용할 수 있는 컴파운드 패턴 기반 컴포넌트입니다. Input은 내부에서 Context를 사용하여
아래의 구성 요소들을 조합하여 다양한 입력 UI를 만들 수 있습니다. 🔧 구성 요소 설명1.
|
Beta Was this translation helpful? Give feedback.
-
📘 Title 컴포넌트 사용 가이드Title 컴포넌트는 Tailwind CSS 기반의 스타일링을 적용한 공통 타이틀 컴포넌트입니다.
import Title from '@/components/Title'; // 예시 경로
// 기본 사용
<Title>기본 타이틀</Title>
// 모든 prop 사용
<Title as="h3" size="2xl" weight="medium" className="text-violet-500">
커스터마이징된 타이틀
</Title>🔧 구성 요소 설명1. as
2.children
3. className
4. size
5. weight
📄 예제코드import Title from '@/components/Title';
function ExampleComponent() {
return (
<div>
{/* 1. 기본 사용: as="h2", size="2xl", weight="regular", color="text-gray-700" */}
<Title>
메인 페이지 제목 (기본)
</Title>
{/* 2. 섹션 제목: as="h3", size="xl", weight="semibold" */}
<Title as="h3" size="xl" weight="semibold" className="mt-6 mb-2">
섹션 제목입니다
</Title>
{/* 3. 리스트 항목 제목: as="h4", size="lg", weight="bold" */}
<Title as="h4" size="lg" weight="bold">
📢 알림 제목
</Title>
{/* 4. 커스텀 스타일 적용: size="3xl", color="text-red-500", weight="medium" */}
<Title as="h2" size="3xl" weight="medium" className="text-red-500 hover:text-red-700 transition">
강조해야 할 매우 큰 타이틀
</Title>
</div>
);
}
export default ExampleComponent;요약
|
Beta Was this translation helpful? Give feedback.







Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Taskify의 공통 컴포넌트 사용 가이드를 정리하는 페이지입니다.
사용 가이드를 코멘트로 남겨주세요!
📘 Dropdown 컴포넌트 사용 방법 >
📘 Combobox 컴포넌트 사용 방법 >
📘 Input 컴포넌트 사용 방법 >
📘 Title 컴포넌트 사용 방법 >
Beta Was this translation helpful? Give feedback.
All reactions