본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Flowbite 가로 구분선 (Horizontal Line, HR)

원문 보기 위키 갱신

가로 구분선을 사용해 요소 사이에 공간을 만들어 콘텐츠를 분리하는 HR 컴포넌트를 배워요. 다양한 스타일, 변형, 레이아웃을 지원해요.

출처: 문서

본문

HR 컴포넌트는 긴 글을 구간별로 나누거나, 섹션을 시각적으로 구분할 때 유용해요.

기본 HR (Default HR)

<hr> 가로선을 사용해 텍스트 콘텐츠를 분리하는 기본 예시예요. h-px, my-8, bg-neutral-quaternary, border-0 클래스를 조합해요.

<p class="text-body">Track work across the enterprise through an open, collaborative platform. Link issues across Jira and ingest data from other software development tools, so your IT support and operations teams have richer contextual information to rapidly respond to requests, incidents, and changes.</p>
<hr class="h-px my-8 bg-neutral-quaternary border-0">
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil, and deploy changes with ease, with a complete audit trail for every change.</p>

가운데 짧은 선 (Short centered line)

w-48 h-1 mx-auto를 사용해 가운데 정렬된 짧고 굵은 구분선을 만들 수 있어요.

<p class="text-body">Track work across the enterprise through an open, collaborative platform. Link issues across Jira and ingest data from other software development tools, so your IT support and operations teams have richer contextual information to rapidly respond to requests, incidents, and changes.</p>
<hr class="w-48 h-1 mx-auto my-4 bg-neutral-quaternary border-0 rounded-sm md:my-10">
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil, and deploy changes with ease, with a complete audit trail for every change.</p>

아이콘이 가운데 있는 선 (Line with centered icon)

선 가운데에 아이콘을 배치한 구분선 예시예요. absolute와 -translate-x-1/2, left-1/2로 아이콘을 중앙에 놓아요.

<p class="text-body">Track work across the enterprise through an open, collaborative platform. Link issues across Jira and ingest data from other software development tools, so your IT support and operations teams have richer contextual information to rapidly respond to requests, incidents, and changes.</p>
<div class="inline-flex items-center justify-center w-full">
    <hr class="w-64 h-1 my-8 bg-neutral-quaternary border-0 rounded-sm">
    <div class="absolute px-4 -translate-x-1/2 bg-neutral-primary left-1/2">
        <svg class="w-6 h-6 text-body" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 11V8a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1Zm0 0v2a4 4 0 0 1-4 4H5m14-6V8a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1Zm0 0v2a4 4 0 0 1-4 4h-1"/></svg>
    </div>
</div>
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil.</p>

'or' 텍스트가 있는 선 (Line with "or" divider)

선 가운데에 'or' 텍스트를 배치한 예시예요. 두 선택지 사이를 구분할 때 유용해요.

<p class="text-body">Track work across the enterprise through an open, collaborative platform. Link issues across Jira and ingest data from other software development tools, so your IT support and operations teams have richer contextual information to rapidly respond to requests, incidents, and changes.</p>
<div class="inline-flex items-center justify-center w-full">
    <hr class="w-64 h-px my-8 bg-neutral-quaternary border-0">
    <span class="absolute px-3 font-medium text-heading -translate-x-1/2 bg-neutral-primary left-1/2">or</span>
</div>
<p class="text-body">Deliver great service experiences fast - without the complexity of traditional ITSM solutions.Accelerate critical development work, eliminate toil.</p>

인용문과 함께 쓰는 선 (Line with quote)

구분선과 인용문(blockquote)을 함께 사용한 예시예요. 짧은 정사각형 점으로 구분한 뒤 인용문을 중앙에 배치해요.

<p class="text-body">Track work across the enterprise through an open, collaborative platform. Link issues across Jira and ingest data from other software development tools, so your IT support and operations teams have richer contextual information to rapidly respond to requests, incidents, and changes.</p>
<hr class="w-8 h-8 mx-auto my-8 bg-neutral-quaternary border-0 rounded-sm md:my-12">
<blockquote class="text-xl italic font-semibold text-center text-heading">
    <p>"Flowbite is just awesome. It contains tons of predesigned components and pages starting from login screen to complex dashboard. Perfect choice for your next SaaS application."</p>
</blockquote>

더 알아보기 (Learn more)