ChoisSTANDARD UI컴포넌트 검색 /

Navigation

Tab Panel

semantic HTML

선택한 tab에 연결된 콘텐츠 영역입니다.

stablefreeSince 0.2

Live example

Overview content is visible.

<section data-standard-component="tabs" aria-label="Details"><button type="button" data-standard-component="tab" selected>Overview</button><button type="button" data-standard-component="tab">Activity</button><section data-standard-component="tab-panel"><p>Overview content is visible.</p></section><section data-standard-component="tab-panel" hidden><p>Activity content is visible.</p></section></section>

Variants and sizes

The pattern inherits theme and density tokens. Use compact, comfortable, or roomy density when the surrounding screen requires it.

compactcomfortableroomy

Public API

ContractValue
Implementationsemantic HTML
Statusstable
Licensefree
Since0.2
HTML contractNative HTML elements and attributes
EventsNative browser events

Accessibility

연결된 Tab의 accessible name을 사용하며 비활성 상태에서는 hidden 처리합니다.

Server template guidance

<!-- Render the semantic HTML on the server. Load enhancement JavaScript only when this interaction is needed. -->