ChoisSTANDARD UI컴포넌트 검색 /

Navigation

Tabs

semantic HTML

관련 패널을 하나씩 전환해 보여줍니다.

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과 Panel을 aria-controls와 aria-labelledby로 연결하고 disabled 및 auto/manual activation을 지원합니다.

Server template guidance

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